Skip to content

Commit a6fc17e

Browse files
committed
[RubySpec] Fix bad spec using racy behavior and killing a thread for no reason.
1 parent c25d417 commit a6fc17e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

spec/ruby/shared/mutex/lock.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,9 @@
3636
th = Thread.new do
3737
m.lock
3838
m.lock
39-
v = 1
4039
end
4140

42-
Thread.pass while th.status and th.status != "sleep"
43-
44-
ScratchPad.recorded.should be_nil
45-
4641
lambda do
47-
th.kill
4842
th.join
4943
end.should raise_error(ThreadError)
5044
end

0 commit comments

Comments
 (0)