Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
both threads should wait on pool_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnn committed Sep 27, 2013
1 parent efd6332 commit 105e811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0-p247
jruby-1.7.4
3 changes: 2 additions & 1 deletion spec/moped/connection/pool_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,15 @@
let!(:thread_one) do
Thread.new do
pool.checkout
sleep(3)
end
end

let!(:thread_two) do
Thread.new do
pool.checkout
sleep(3)
pool.checkout
sleep(3)
end
end

Expand Down

0 comments on commit 105e811

Please sign in to comment.