Skip to content

Commit 3bebf00

Browse files
committed
Reduce threshold to 0.1 seconds
1 parent e57675e commit 3bebf00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/erbx/test/test_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require "timeout"
66

77
class Minitest::Spec
8-
TIMEOUT_THRESHOLD = 0.5 # seconds
8+
TIMEOUT_THRESHOLD = 0.1 # seconds
99

1010
class << self
1111
alias_method :test, :it
@@ -36,7 +36,7 @@ def run
3636
rescue Timeout::Error, Timeout::ExitException
3737
Process.kill("TERM", pid) # Gracefully terminate
3838

39-
sleep 0.5 # Give it time to exit
39+
sleep TIMEOUT_THRESHOLD # Give it time to exit
4040

4141
Process.kill("KILL", pid) rescue nil # Force kill if needed
4242

0 commit comments

Comments
 (0)