Skip to content

Commit 8c1ecfd

Browse files
committed
[GR-31951] Tweak Thread#wakeup spec to use a reasonable amount of Thread#wakeup calls
PullRequest: truffleruby/2708
2 parents 0194812 + bd722f5 commit 8c1ecfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/ruby/core/thread/shared/wakeup.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
it "does not result in a deadlock" do
3838
t = Thread.new do
39-
100.times { Thread.stop }
39+
10.times { Thread.stop }
4040
end
4141

4242
while t.status
@@ -47,6 +47,7 @@
4747
t.status.should == false
4848
end
4949
Thread.pass
50+
sleep 0.001
5051
end
5152

5253
t.status.should == false

0 commit comments

Comments
 (0)