From 7124ebb9eab0023b524987129ff0b05865fc1e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= Date: Sun, 25 Aug 2013 23:33:37 +0300 Subject: [PATCH] Fix test_oneshot_on_usr2_error to reset the buffer before doing the second connection test. --- tests/test_manhole.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_manhole.py b/tests/test_manhole.py index 051ad49..842fb37 100644 --- a/tests/test_manhole.py +++ b/tests/test_manhole.py @@ -395,6 +395,7 @@ def test_oneshot_on_usr2_error(self): self._wait_for_strings(proc.read, TIMEOUT, 'Waiting for new connection') self.assertManholeRunning(proc, uds_path, oneshot=True, extra=lambda sock: sock.send(b"raise SystemExit()\n")) + proc.reset() proc.signal(signal.SIGUSR2) self._wait_for_strings(proc.read, TIMEOUT, '/tmp/manhole-') uds_path = re.findall("(/tmp/manhole-\d+)", proc.read())[0]