From 51489f84be3f94b73a933e7b98843ef323afaf95 Mon Sep 17 00:00:00 2001 From: James Sully Date: Wed, 31 Jul 2024 18:31:22 +1000 Subject: [PATCH] make the trivial test an actual test --- test_daemon.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test_daemon.py b/test_daemon.py index ad1ef1d..b68917a 100755 --- a/test_daemon.py +++ b/test_daemon.py @@ -75,8 +75,19 @@ def run_client_tests(): client_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) client_sock.connect(SOCKET_PATH) - client_sock.send(b'"list"') + + # test list + msg = b'"list"' + client_sock.send(msg) response = client_sock.recv(1024) + # expected = b'{"ok": {"timers": []}}' + expected = b'unexpected to test CI failure' + if response != expected: + print(f"sent: {msg}") + print(f"expected: {expected}") + print(f"received: {response}") + sys.exit(1) + print(f"-- Received response: {response}") client_sock.close()