make sure we don't hit a race condition if this EM spec is taking longer to run than normal

This commit is contained in:
Brian Lopez 2010-09-27 13:25:10 -07:00
parent 4383885634
commit 2ae908c512
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ describe Mysql2::EM::Client do
results = []
EM.run do
client1 = Mysql2::EM::Client.new
defer1 = client1.query "SELECT sleep(0.05) as first_query"
defer1 = client1.query "SELECT sleep(0.1) as first_query"
defer1.callback do |result|
results << result.first
EM.stop_event_loop