summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Orr <brian.orr@gmail.com>2017-08-15 08:15:14 -0700
committerBrian Orr <brian.orr@gmail.com>2017-08-15 08:15:14 -0700
commit495d15c0f7dcc458a156b23a226216d574bf517a (patch)
tree7b9bb077d67b6e73331713863c1525227ac7b0b2
parentff794c230e8f5215f5347b2d6903779fe8a2a9b3 (diff)
Swap (potentially infinite) timeout with fixed delay
-rwxr-xr-xgr-blocks/python/blocks/qa_socket_pdu.py3
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()