Skip to content

Commit c61d410

Browse files
committed
attempted bug fixing reverts
1 parent 630f240 commit c61d410

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

tests/conftest.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,9 @@ def openml_docker_stack(tmp_path_factory, worker_id):
330330

331331
lock = fasteners.InterProcessLock(str(lock_file))
332332
with lock:
333-
import socket
334-
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
335-
result = sock.connect_ex(('localhost', 33060))
336-
is_port_open = (result == 0)
337-
sock.close()
338-
339-
if not is_port_open:
340-
_start_docker()
333+
if not _is_server_responding():
334+
_start_docker()
335+
341336
yield
342337

343338
@pytest.fixture

0 commit comments

Comments
 (0)