Permalink
Browse files

test notes

  • Loading branch information...
1 parent 18f7bbc commit 8858a6d98b28ca66b527e1da1620392944760400 @rdp rdp committed May 10, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/stack_printer_test.rb
  2. +1 −1 test/thread_test.rb
@@ -46,7 +46,7 @@ def test_stack_can_be_printed
assert file_contents =~ /Thread: (\d+) \(100\.00% ~ ([.0-9]+)\)/
actual_time = $2.to_f
difference = (expected_time-actual_time).abs
- assert difference < 0.01 # less than 1 ms
+ assert_in_delta(expected_time, actual_time, 0.01)
end
def test_method_elimination
View
@@ -155,7 +155,7 @@ def test_thread_back_and_forth
a.join
b.join
end
- assert result.threads.values.flatten.sort[-1].total_time < 10 # 10s
+ assert result.threads.values.flatten.sort[-1].total_time < 10 # 10s. Amazingly, this can fail in OS X at times. Amazing.
end
def test_thread

0 comments on commit 8858a6d

Please sign in to comment.