@@ -6,14 +6,14 @@ class RorVsWild::Plugin::MiddlewareTest < Minitest::Test
66 def test_callback
77 middleware . call ( "ORIGINAL_FULLPATH" => "/foo/bar" )
88 assert_equal ( "/foo/bar" , agent . current_execution . path )
9- assert_equal ( 1 , ( sections = current_sections_without_gc ) . size )
9+ assert_equal ( 1 , ( sections = current_user_sections ) . size )
1010 assert_equal ( "Rails::Engine#call" , sections [ 0 ] . command )
1111 end
1212
1313 def test_queue_time_section
1414 middleware . call ( "HTTP_X_REQUEST_START" => unix_timestamp_seconds . to_s )
1515
16- sections = current_sections_without_gc
16+ sections = current_user_sections
1717 assert_equal ( 2 , sections . size )
1818 queue_time_section = sections [ 0 ]
1919 assert_equal "queue" , queue_time_section . file
@@ -25,23 +25,23 @@ def test_queue_time_section
2525 def test_queue_time_secs
2626 middleware . call ( "HTTP_X_REQUEST_START" => ( unix_timestamp_seconds - 0.123 ) . to_s )
2727
28- sections = current_sections_without_gc
28+ sections = current_user_sections
2929 assert_equal ( 2 , sections . size )
3030 assert_operator ( 123 , :<= , sections [ 0 ] . total_ms )
3131 end
3232
3333 def test_queue_time_millis
3434 middleware . call ( "HTTP_X_QUEUE_START" => ( unix_timestamp_seconds * 1000 - 234 ) . to_s )
3535
36- sections = current_sections_without_gc
36+ sections = current_user_sections
3737 assert_equal ( 2 , sections . size )
3838 assert_operator ( 234 , :<= , sections [ 0 ] . total_ms )
3939 end
4040
4141 def test_queue_time_micros
4242 middleware . call ( "HTTP_X_MIDDLEWARE_START" => ( unix_timestamp_seconds * 1_000_000 - 345_000 ) . to_s )
4343
44- sections = current_sections_without_gc
44+ sections = current_user_sections
4545 assert_equal ( 2 , sections . size )
4646 assert_operator ( 345 , :<= , sections [ 0 ] . total_ms )
4747 end
0 commit comments