Skip to content

Commit

Permalink
[tests] wait for client socket to bind, give sensu more time to proce…
Browse files Browse the repository at this point in the history
…ss event
  • Loading branch information
portertech committed Mar 20, 2012
1 parent 8bc777b commit 97f804b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/sensu_test.rb
Expand Up @@ -136,14 +136,16 @@ def test_client_socket
end
callback = proc do |response|
assert_equal('ok', response)
EM::Timer.new(1.5) do
EM::Timer.new(2) do
server.redis.hgetall('events:' + @settings.client.name).callback do |events|
assert(events.include?('external'))
done
end
end
end
EM::defer(external_source, callback)
EM::Timer.new(0.5) do
EM::defer(external_source, callback)
end
end

def test_first_master_election
Expand Down

0 comments on commit 97f804b

Please sign in to comment.