Skip to content

Commit e99ff85

Browse files
committed
test: extend a delay in testing after spawning server processes
This adds to PR #799; please see that for details. Signed-off-by: Sebastien Awwad <sebastien.awwad@gmail.com>
1 parent 0380b65 commit e99ff85

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_multiple_repositories_integration.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,13 @@ def setUp(self):
148148
self.url = 'http://localhost:' + str(self.SERVER_PORT) + os.path.sep
149149
self.url2 = 'http://localhost:' + str(self.SERVER_PORT2) + os.path.sep
150150

151-
# NOTE: Following error is raised if a delay is not applied:
151+
# NOTE: Following error is raised if a delay is not long enough:
152152
# <urlopen error [Errno 111] Connection refused>
153-
time.sleep(.3)
153+
# or, on Windows:
154+
# Failed to establish a new connection: [Errno 111] Connection refused'
155+
# 0.3s led to occasional failures in automated builds, primarily on
156+
# AppVeyor, so increasing this to 2s, sadly.
157+
time.sleep(2)
154158

155159
url_prefix = 'http://localhost:' + str(self.SERVER_PORT)
156160
url_prefix2 = 'http://localhost:' + str(self.SERVER_PORT2)

0 commit comments

Comments
 (0)