Skip to content

Commit

Permalink
Fix test_oneshot_on_usr2_error to reset the buffer before doing the s…
Browse files Browse the repository at this point in the history
…econd connection test.
  • Loading branch information
ionelmc committed Aug 25, 2013
1 parent 2ee5ccd commit 7124ebb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_manhole.py
Expand Up @@ -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]
Expand Down

0 comments on commit 7124ebb

Please sign in to comment.