Skip to content

Commit

Permalink
tests: do not write to maybe-closed socket
Browse files Browse the repository at this point in the history
The agent might exit before the empty MSG_DATA_STDIN message is sent.
  • Loading branch information
DemiMarie committed May 5, 2024
1 parent a60c40c commit 8b683a8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qrexec/tests/socket/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8b683a8

Please sign in to comment.