Skip to content

Commit

Permalink
Make a reactor test more resilient to races
Browse files Browse the repository at this point in the history
  • Loading branch information
iconara committed May 25, 2014
1 parent 8cf1f67 commit cc66216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ione/io/io_reactor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def fake_connected(connection)
it 'creates an acceptor and passes it to the selector as a readable' do
reactor.start.value
acceptor = reactor.bind(ENV['SERVER_HOST'], port, 5).value
await { selector.last_arguments[0].length > 1 }
await { selector.last_arguments && selector.last_arguments[0].length > 1 }
selector.last_arguments[0].should include(acceptor)
end

Expand Down

0 comments on commit cc66216

Please sign in to comment.