Show More
@@ -39,15 +39,11 b' class NotebookTestBase(TestCase):' | |||||
39 |
|
39 | |||
40 | @classmethod |
|
40 | @classmethod | |
41 | def wait_until_dead(cls): |
|
41 | def wait_until_dead(cls): | |
42 |
"""Wait for the server |
|
42 | """Wait for the server process to terminate after shutdown""" | |
43 | url = 'http://localhost:%i/api/notebooks' % cls.port |
|
|||
44 | for _ in range(300): |
|
43 | for _ in range(300): | |
45 | try: |
|
44 | if cls.notebook.poll() is not None: | |
46 |
re |
|
45 | return | |
47 | except requests.exceptions.ConnectionError: |
|
46 | time.sleep(.1) | |
48 | break |
|
|||
49 | else: |
|
|||
50 | time.sleep(.1) |
|
|||
51 |
|
47 | |||
52 | raise TimeoutError("Undead notebook server") |
|
48 | raise TimeoutError("Undead notebook server") | |
53 |
|
49 |
General Comments 0
You need to be logged in to leave comments.
Login now