1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Increase timeout a thread error handling test
Increase hardcoded timeout to ensure test runs on a slow test
system, for example a virtual machine.
Author: Tim Potter <tpot@hp.com>
Last Update: 2014-09-27
--- ruby-metriks-0.9.9.6.orig/test/thread_error_handling_tests.rb
+++ ruby-metriks-0.9.9.6/test/thread_error_handling_tests.rb
@@ -10,7 +10,7 @@ module ThreadErrorHandlingTests
reporter.stubs(:write).raises(StandardError, "boom")
reporter.start
- sleep 0.02
+ sleep 0.5
assert_equal true, error_handler_called
assert_equal "boom", rescued_error.message
ensure
|