Skip to content

Commit

Permalink
Fix up Ruby 3.0.* tests based on updated default method sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisoi committed Jan 7, 2024
1 parent 9e3e903 commit fe57eda
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/measure_process_time_test.rb
Expand Up @@ -262,14 +262,14 @@ def test_instance_methods_sleep
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[2]
assert_equal('Kernel#sleep', method.full_name)
assert_equal('Class#new', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[3]
assert_equal('Class#new', method.full_name)
assert_equal('Kernel#sleep', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
Expand Down Expand Up @@ -314,14 +314,14 @@ def test_instance_methods_sleep_block
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[3]
assert_equal('Kernel#sleep', method.full_name)
assert_equal('Class#new', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[4]
assert_equal('Class#new', method.full_name)
assert_equal('Kernel#sleep', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
Expand Down Expand Up @@ -405,14 +405,14 @@ def test_instance_methods_sleep_threaded
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[2]
assert_equal('Kernel#sleep', method.full_name)
assert_equal('Class#new', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[3]
assert_equal('Class#new', method.full_name)
assert_equal('Kernel#sleep', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
Expand Down Expand Up @@ -712,14 +712,14 @@ def test_module_instance_methods_sleep
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[2]
assert_equal('Kernel#sleep', method.full_name)
assert_equal('Class#new', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
assert_in_delta(0.0, method.children_time, 0.05)

method = methods[3]
assert_equal('Class#new', method.full_name)
assert_equal('Kernel#sleep', method.full_name)
assert_in_delta(0.0, method.total_time, 0.05)
assert_in_delta(0.0, method.wait_time, 0.05)
assert_in_delta(0.0, method.self_time, 0.05)
Expand Down

0 comments on commit fe57eda

Please sign in to comment.