Skip to content

Commit edf26e2

Browse files
committed
fix: increase timeout for balatrobot client to 60 seconds
1 parent 4cbe450 commit edf26e2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/balatrobot/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BalatroClient:
3535
"""
3636

3737
host = "127.0.0.1"
38-
timeout = 30.0
38+
timeout = 60.0
3939
buffer_size = 65536
4040

4141
def __init__(self, port: int = 12346):

tests/balatrobot/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ def test_client_initialization_defaults(self, port):
2020

2121
assert client.host == "127.0.0.1"
2222
assert client.port == port
23-
assert client.timeout == 30.0
23+
assert client.timeout == 60.0
2424
assert client.buffer_size == 65536
2525
assert client._socket is None
2626
assert client._connected is False
2727

2828
def test_client_class_attributes(self):
2929
"""Test client class attributes are set correctly."""
3030
assert BalatroClient.host == "127.0.0.1"
31-
assert BalatroClient.timeout == 30.0
31+
assert BalatroClient.timeout == 60.0
3232
assert BalatroClient.buffer_size == 65536
3333

3434
def test_context_manager_with_game_running(self, port):

tests/lua/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Connection settings
1313
HOST = "127.0.0.1"
14-
TIMEOUT: float = 30.0 # timeout for socket operations in seconds
14+
TIMEOUT: float = 60.0 # timeout for socket operations in seconds
1515
BUFFER_SIZE: int = 65536 # 64KB buffer for TCP messages
1616

1717

0 commit comments

Comments
 (0)