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