Skip to content

Commit 79eaa06

Browse files
committed
test: increase timeout for tests
10 seconds is too short for the tests to run with normal speed.
1 parent 5275d1c commit 79eaa06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/balatrobot/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_client_initialization_defaults(self):
3434

3535
assert client.host == "127.0.0.1"
3636
assert client.port == 12346
37-
assert client.timeout == 10.0
37+
assert client.timeout == 30.0
3838
assert client.buffer_size == 65536
3939
assert client._socket is None
4040
assert client._connected is False
@@ -43,7 +43,7 @@ def test_client_class_attributes(self):
4343
"""Test client class attributes are set correctly."""
4444
assert BalatroClient.host == "127.0.0.1"
4545
assert BalatroClient.port == 12346
46-
assert BalatroClient.timeout == 10.0
46+
assert BalatroClient.timeout == 30.0
4747
assert BalatroClient.buffer_size == 65536
4848

4949
def test_context_manager_with_game_running(self):

tests/lua/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Connection settings
1010
HOST = "127.0.0.1"
1111
PORT: int = 12346 # default port for BalatroBot TCP API
12-
TIMEOUT: float = 10.0 # timeout for socket operations in seconds
12+
TIMEOUT: float = 30.0 # timeout for socket operations in seconds
1313
BUFFER_SIZE: int = 65536 # 64KB buffer for TCP messages
1414

1515

0 commit comments

Comments
 (0)