File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change 11import json
22import multiprocessing
33import socket
4- import time
54from collections .abc import AsyncGenerator , Generator
65from typing import Any
76from unittest .mock import AsyncMock , MagicMock , Mock , patch
@@ -134,11 +133,6 @@ def run_server(server_port: int) -> None: # pragma: no cover
134133 print (f"starting server on { server_port } " )
135134 server .run ()
136135
137- # Give server time to start
138- while not server .started :
139- print ("waiting for server to start" )
140- time .sleep (0.5 )
141-
142136
143137@pytest .fixture ()
144138def server (server_port : int ) -> Generator [None , None , None ]:
@@ -313,11 +307,6 @@ def run_mounted_server(server_port: int) -> None: # pragma: no cover
313307 print (f"starting server on { server_port } " )
314308 server .run ()
315309
316- # Give server time to start
317- while not server .started :
318- print ("waiting for server to start" )
319- time .sleep (0.5 )
320-
321310
322311@pytest .fixture ()
323312def mounted_server (server_port : int ) -> Generator [None , None , None ]:
Original file line number Diff line number Diff line change 11import multiprocessing
22import socket
3- import time
43from collections .abc import AsyncGenerator , Generator
54from urllib .parse import urlparse
65
@@ -114,11 +113,6 @@ def run_server(server_port: int) -> None: # pragma: no cover
114113 print (f"starting server on { server_port } " )
115114 server .run ()
116115
117- # Give server time to start
118- while not server .started :
119- print ("waiting for server to start" )
120- time .sleep (0.5 )
121-
122116
123117@pytest .fixture ()
124118def server (server_port : int ) -> Generator [None , None , None ]:
You can’t perform that action at this time.
0 commit comments