From 8b683a8a1c6538b4ae6ab086b5dab548d9b06e88 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Wed, 1 May 2024 21:58:51 -0400 Subject: [PATCH] tests: do not write to maybe-closed socket The agent might exit before the empty MSG_DATA_STDIN message is sent. --- qrexec/tests/socket/agent.py | 1 - 1 file changed, 1 deletion(-) diff --git a/qrexec/tests/socket/agent.py b/qrexec/tests/socket/agent.py index 3e81b3d7..377686f6 100644 --- a/qrexec/tests/socket/agent.py +++ b/qrexec/tests/socket/agent.py @@ -532,7 +532,6 @@ def test_exec_service_bad_multiplexer(self): def _test_exec_service_fail(self, exit_code=qrexec.QREXEC_EXIT_PROBLEM): target, dom0 = self.execute_qubesrpc("qubes.Service+arg", "domX") - target.send_message(qrexec.MSG_DATA_STDIN, b"") messages = target.recv_all_messages() self.assertListEqual( util.sort_messages(messages),