Skip to content

Commit

Permalink
rake:spec: wait until the test actor is really ready
Browse files Browse the repository at this point in the history
  • Loading branch information
niamster committed Feb 28, 2015
1 parent bb5473e commit a950b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/test_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ def self.start
def self.wait_until_ready
STDERR.print "Waiting for test node to start up..."

node = nil
actor = nil
60.times do
begin
node = DCell::Node[TEST_NODE[:id]]
break if node
actor = DCell[:test_actor].first
break if actor
STDERR.print "."
sleep 1
end
end

if node
if actor
STDERR.puts " done!"
else
STDERR.puts " FAILED!"
Expand Down

0 comments on commit a950b49

Please sign in to comment.