test/stack_test.rb in ruby-prof-0.7.6 vs test/stack_test.rb in ruby-prof-0.7.7
- old
+ new
@@ -51,14 +51,14 @@
# Check StackTest#test_call_sequence
method = methods[0]
assert_equal('StackTest#test_call_sequence', method.full_name)
assert_equal(1, method.called)
- assert_in_delta(8, method.total_time, 0.05)
+ assert_in_delta(8, method.total_time, 0.25)
assert_in_delta(0, method.wait_time, 0.01)
assert_in_delta(0, method.self_time, 0.01)
- assert_in_delta(8, method.children_time, 0.05)
+ assert_in_delta(8, method.children_time, 0.25)
assert_equal(1, method.call_infos.length)
call_info = method.call_infos[0]
assert_equal('StackTest#test_call_sequence', call_info.call_sequence)
assert_equal(1, call_info.children.length)
@@ -81,11 +81,11 @@
method = methods[2]
assert_equal('Kernel#sleep', method.full_name)
assert_equal(4, method.called)
assert_in_delta(8, method.total_time, 0.05)
assert_in_delta(0, method.wait_time, 0.01)
- assert_in_delta(8, method.self_time, 0.01)
+ assert_in_delta(8, method.self_time, 0.05)
assert_in_delta(0, method.children_time, 0.05)
assert_equal(4, method.call_infos.length)
call_info = method.call_infos[0]
assert_equal('StackTest#test_call_sequence->StackClass#a->Kernel#sleep', call_info.call_sequence)
@@ -133,6 +133,6 @@
call_info = method.call_infos[1]
assert_equal('StackTest#test_call_sequence->StackClass#a->StackClass#c->StackClass#b', call_info.call_sequence)
assert_equal(1, call_info.children.length)
end
-end
\ No newline at end of file
+end