diff options
author | Brian Orr <brian.orr@gmail.com> | 2017-08-15 08:15:14 -0700 |
---|---|---|
committer | Brian Orr <brian.orr@gmail.com> | 2017-08-15 08:15:14 -0700 |
commit | 495d15c0f7dcc458a156b23a226216d574bf517a (patch) | |
tree | 7b9bb077d67b6e73331713863c1525227ac7b0b2 /gr-blocks/python | |
parent | ff794c230e8f5215f5347b2d6903779fe8a2a9b3 (diff) |
Swap (potentially infinite) timeout with fixed delay
Diffstat (limited to 'gr-blocks/python')
-rwxr-xr-x | gr-blocks/python/blocks/qa_socket_pdu.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gr-blocks/python/blocks/qa_socket_pdu.py b/gr-blocks/python/blocks/qa_socket_pdu.py index 635e69ff80..5285585340 100755 --- a/gr-blocks/python/blocks/qa_socket_pdu.py +++ b/gr-blocks/python/blocks/qa_socket_pdu.py @@ -117,8 +117,7 @@ class qa_socket_pdu (gr_unittest.TestCase): self.tb.msg_connect(self.pdu_recv, "pdus", self.pdu_sink, "store") self.tb.start() - while self.pdu_sink.num_messages() < 1: - time.sleep(0.1) + time.sleep(1) self.tb.stop() self.tb.wait() |