From be5b2f5526ed4f9818688779e43a45ba13340c59 Mon Sep 17 00:00:00 2001 From: Kayla Reopelle Date: Wed, 7 Feb 2024 08:41:33 -0800 Subject: [PATCH] Skip flaky scoped metric reporting test This test has failed on Ruby versions ranging from 2.5 to 3.2 (perhaps more, but I didn't look too deeply into this). Skip the test until we can figure out why it's broken. --- test/new_relic/agent/transaction/segment_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/new_relic/agent/transaction/segment_test.rb b/test/new_relic/agent/transaction/segment_test.rb index b08ed7ccca..e4168115a8 100644 --- a/test/new_relic/agent/transaction/segment_test.rb +++ b/test/new_relic/agent/transaction/segment_test.rb @@ -154,6 +154,9 @@ def test_segment_records_metrics_when_given_as_array end def test_segment_can_disable_scoped_metric_recording + # TODO: Fix this test via Issue #2429 + skip 'This test fails intermittently on multiple Ruby versions' + in_transaction('test') do |txn| segment = Segment.new('Custom/simple/segment', 'Segment/all') segment.record_scoped_metric = false