File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ def test_queue_time_millis
5858
5959 middleware . call ( request )
6060
61- assert_equal ( 2 , agent . current_execution . sections . size )
62- queue_time_section = agent . current_execution . sections [ 0 ]
63- assert_in_delta ( 234 , queue_time_section . total_ms , 10 )
61+ sections = current_sections_without_gc
62+ assert_equal ( 2 , sections . size )
63+ assert_in_delta ( 234 , sections [ 0 ] . total_ms , 10 )
6464 end
6565
6666 def test_queue_time_micros
@@ -72,9 +72,10 @@ def test_queue_time_micros
7272 middleware . stubs ( rails_engine_location : [ "/rails/lib/engine.rb" , 12 ] )
7373 middleware . call ( request )
7474
75- assert_equal ( 2 , agent . current_execution . sections . size )
76- queue_time_section = agent . current_execution . sections [ 0 ]
77- assert_in_delta ( 345 , queue_time_section . total_ms , 10 )
75+ sections = current_sections_without_gc
76+ assert_equal ( 2 , sections . size )
77+ queue_time_section = sections [ 0 ]
78+ assert_in_delta ( 345 , sections [ 0 ] . total_ms , 10 )
7879 end
7980
8081 private
You can’t perform that action at this time.
0 commit comments