Skip to content

Commit

Permalink
i guess it could always be more robust than before
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Sep 8, 2009
1 parent fe33060 commit 1f3f4bf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/test_openid.rb
Expand Up @@ -55,18 +55,19 @@ def self.start_server!
Process.wait(pid)
}

sleep 0.75
begin
uri = URI.parse(RotsServer)
response = Net::HTTP.get_response(uri)
rescue Errno::ECONNREFUSED
sleep 0.5
retry
end

@server_started = true
end

def setup
self.class.start_server!

assert_nothing_raised(Errno::ECONNREFUSED) {
uri = URI.parse(RotsServer)
response = Net::HTTP.get_response(uri)
}
end

def test_with_get
Expand Down

0 comments on commit 1f3f4bf

Please sign in to comment.