Skip to content

Commit fe64c88

Browse files
committed
docs: renamed log file and provide suggestion for Timeout errors
1 parent 683ea07 commit fe64c88

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CLAUDE.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ pytest -v
3939
ps aux | grep run_lovely_macos
4040

4141
# Start if not running
42-
./balatro.sh > balatrobot.log 2>&1 & sleep 10 && echo "Balatro started and ready"
42+
./balatro.sh > balatro.log 2>&1 & sleep 10 && echo "Balatro started and ready"
4343
```
4444

4545
2. **Monitor game startup**:
4646

4747
```bash
4848
# Check logs for successful mod loading
49-
tail -n 100 balatrobot.log
49+
tail -n 100 balatro.log
5050

5151
# Look for these success indicators:
5252
# - "BalatrobotAPI initialized"
@@ -60,14 +60,15 @@ pytest -v
6060
- **JSON metadata errors**: Normal for development files (.vscode, .luarc.json) - can be ignored
6161

6262
4. **Test execution**:
63-
- **Test suite**: 33 tests covering API functions and UDP communication
64-
- **Execution time**: ~70 seconds (includes game state transitions)
63+
- **Test suite**: 35 tests covering API functions and UDP communication
64+
- **Execution time**: ~80 seconds (includes game state transitions)
6565
- **Coverage**: API function calls, socket communication, error handling, edge cases
6666

6767
5. **Troubleshooting test failures**:
6868
- **Connection timeouts**: Ensure UDP port 12346 is available
6969
- **Game state errors**: Check if game is responsive and not crashed
7070
- **Invalid responses**: Verify mod loaded correctly by checking logs
71+
- **If test/s fail for timeout the reasons is that Balatro crash because there was an error in the Balatro mod (i.e. @balatrobot.lua and @src/lua/ ). The error should be logged in the `balatro.log` file.**
7172

7273
### Documentation
7374

@@ -121,4 +122,4 @@ I keep the old code around for reference.
121122
### Testing Best Practices
122123

123124
- **Always check that Balatro is running before running tests**
124-
- After starting Balatro, check the `balatrobot.log` to confirm successful startup
125+
- After starting Balatro, check the `balatro.log` to confirm successful startup

0 commit comments

Comments
 (0)