summaryrefslogtreecommitdiff
path: root/spec/ruby/core/thread/list_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/thread/list_spec.rb')
-rw-r--r--spec/ruby/core/thread/list_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/list_spec.rb b/spec/ruby/core/thread/list_spec.rb
index a0bf831856..3c6f70c13e 100644
--- a/spec/ruby/core/thread/list_spec.rb
+++ b/spec/ruby/core/thread/list_spec.rb
@@ -43,11 +43,11 @@ describe "Thread.list" do
end
end
- while spawner.alive?
+ begin
Thread.list.each { |th|
th.should be_kind_of(Thread)
}
- end
+ end while spawner.alive?
threads = spawner.value
threads.each(&:join)