Skip to content

Commit 53b5607

Browse files
committed
Longer timeouts in Exchanger spec.
1 parent 5cfbfc6 commit 53b5607

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/concurrent/exchanger_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Concurrent
1111
context 'without timeout' do
1212
it 'should block' do
1313
t = Thread.new { exchanger.exchange(1) }
14-
sleep(0.05)
14+
sleep(0.1)
1515
t.status.should eq 'sleep'
1616
end
1717

@@ -51,12 +51,12 @@ module Concurrent
5151
it 'should block until timeout' do
5252
value = 0
5353

54-
t = Thread.new { value = exchanger.exchange(2, 0.1) }
54+
t = Thread.new { value = exchanger.exchange(2, 0.2) }
5555

56-
sleep(0.05)
56+
sleep(0.1)
5757
t.status.should eq 'sleep'
5858

59-
sleep(0.06)
59+
sleep(0.2)
6060

6161
value.should be_nil
6262
end

0 commit comments

Comments
 (0)