diff --git a/tests/stockfish/test_models.py b/tests/stockfish/test_models.py index 40227fe..ab71b51 100644 --- a/tests/stockfish/test_models.py +++ b/tests/stockfish/test_models.py @@ -12,6 +12,8 @@ def send_command(process, command: str): process.stdin.flush() lines = [] while True: + if command.startswith("position fen"): + break line = process.stdout.readline() lines.append(line) print(line)