Skip to content

Commit 269a4fe

Browse files
committed
fix: unit tests
1 parent de7ee14 commit 269a4fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/test_proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async def test_proxy_server_connect_fails(proxy_server):
166166

167167
await asyncio.sleep(1) # give proxy a chance to shut down
168168

169-
assert os.path.exists(socket_path)
169+
assert not os.path.exists(socket_path)
170170

171171

172172
@pytest.mark.asyncio
@@ -337,7 +337,7 @@ async def test_tcp_proxy_server_connection_refused(tcp_proxy_server_with_no_tcp_
337337
await writer.drain()
338338

339339
await asyncio.sleep(1.5)
340-
assert os.path.exists(socket_path)
340+
assert not os.path.exists(socket_path)
341341

342342

343343

@@ -356,7 +356,7 @@ async def test_tcp_proxy_server_unexpected_closed(tcp_proxy_server_with_closing_
356356
assert data == b""
357357

358358
await asyncio.sleep(0.5) # give event loop a chance to run
359-
assert os.path.exists(socket_path)
359+
assert not os.path.exists(socket_path)
360360

361361

362362

0 commit comments

Comments
 (0)