File: increase-timeout-on-thread_error_handling_tests.patch

package info (click to toggle)
ruby-metriks 0.9.9.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: ruby: 1,855; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (4)
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