Skip to content

Commit

Permalink
Fix timeouts again
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Sep 27, 2014
1 parent b6ae58b commit a003773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def logfile(self):
return self.xprocess.getinfo('dev_server').logpath.open()

def request_pid(self):
for i in range(10):
for i in range(20):
time.sleep(0.1 * i)
try:
self.last_pid = int(urlopen(self.url + '/_getpid').read())
Expand All @@ -99,7 +99,7 @@ def request_pid(self):

def wait_for_reloader(self):
old_pid = self.last_pid
for i in range(10):
for i in range(20):
time.sleep(0.1 * i)
new_pid = self.request_pid()
if not new_pid:
Expand All @@ -109,7 +109,7 @@ def wait_for_reloader(self):
raise RuntimeError('Server did not reload.')

def wait_for_reloader_loop(self):
for i in range(60*3):
for i in range(20):
time.sleep(0.1 * i)
line = self.logfile.readline()
if 'reloader loop finished' in line:
Expand Down

0 comments on commit a003773

Please sign in to comment.