Skip to content

Commit

Permalink
update test regex to use %r{}
Browse files Browse the repository at this point in the history
  • Loading branch information
tannalynn committed Mar 7, 2023
1 parent 4fbd9e0 commit 4f4b507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/new_relic/agent/tracer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def test_thread_ids_included_when_enabled
Thread.new { 'woof' }.join
end

assert_match (/Ruby\/Thread\/Thread\d+\/Fiber\d+/), txn.segments.last.name
assert_match %r{Ruby/Thread/Thread\d+/Fiber\d+}, txn.segments.last.name
end
end

Expand All @@ -413,7 +413,7 @@ def test_thread_ids_absent_when_disabled
Thread.new { 'woof' }.join
end

assert_match (/Ruby\/Thread$/), txn.segments.last.name
assert_match %r{Ruby/Thread$}, txn.segments.last.name
end
end

Expand Down

0 comments on commit 4f4b507

Please sign in to comment.