We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e57675e commit 3bebf00Copy full SHA for 3bebf00
ext/erbx/test/test_helper.rb
@@ -5,7 +5,7 @@
5
require "timeout"
6
7
class Minitest::Spec
8
- TIMEOUT_THRESHOLD = 0.5 # seconds
+ TIMEOUT_THRESHOLD = 0.1 # seconds
9
10
class << self
11
alias_method :test, :it
@@ -36,7 +36,7 @@ def run
36
rescue Timeout::Error, Timeout::ExitException
37
Process.kill("TERM", pid) # Gracefully terminate
38
39
- sleep 0.5 # Give it time to exit
+ sleep TIMEOUT_THRESHOLD # Give it time to exit
40
41
Process.kill("KILL", pid) rescue nil # Force kill if needed
42
0 commit comments