Skip to content

Commit 6a7c337

Browse files
committed
increase timeouts for flaky unit tests
I hate this, I wish we didn't need to do this. I'll fix them later, they're now my mortal enemy.
1 parent ab98305 commit 6a7c337

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/client/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_command_execution(mock_config_path: Path):
4444

4545
test_args = [command] + args + ["--help"]
4646

47-
result = subprocess.run(test_args, capture_output=True, text=True, timeout=5, check=False)
47+
result = subprocess.run(test_args, capture_output=True, text=True, timeout=20, check=False)
4848

4949
assert result.returncode == 0
5050
assert "usage" in result.stdout.lower()

tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import time
55

66

7-
def wait_for_server(port: int, timeout: float = 5.0) -> None:
7+
def wait_for_server(port: int, timeout: float = 20.0) -> None:
88
"""Wait for server to be ready to accept connections.
99
1010
Polls the server port until it accepts connections or timeout is reached.

0 commit comments

Comments
 (0)