diff options
author | Andrej Rode <mail@andrejro.de> | 2018-11-29 14:44:35 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-30 12:41:56 -0800 |
commit | 9e864fc5d37f7a761a0c6dcedd02f90390a2b000 (patch) | |
tree | 8ccd1bda79d029bee8be7dc4a7a046a4eeb92309 /gr-blocks/python | |
parent | 31885c7da227418f0f9dc5c4f55daba5fd04a7c0 (diff) |
udp: wait a short time after creating starting the receiver
Running unit tests the sender socket could be created before the receiver socket
was ready. Try to avoid that by adding a sleep in between the receiver socket
creation and the sender socket creation.
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/qa_udp_source_sink.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/qa_udp_source_sink.py b/gr-blocks/python/blocks/qa_udp_source_sink.py index f0418357fd..f17fcf1a21 100644 --- a/gr-blocks/python/blocks/qa_udp_source_sink.py +++ b/gr-blocks/python/blocks/qa_udp_source_sink.py @@ -23,6 +23,7 @@ from gnuradio import gr, gr_unittest, blocks import os +import time from threading import Timer @@ -71,6 +72,7 @@ class test_udp_sink_source(gr_unittest.TestCase): self.tb_rcv.connect(udp_rcv, dst) self.tb_rcv.start() + time.sleep(0.1) self.tb_snd.run() udp_snd.disconnect() self.timeout = False @@ -102,6 +104,7 @@ class test_udp_sink_source(gr_unittest.TestCase): self.tb_rcv.connect(udp_rcv, dst) self.tb_rcv.start() + time.sleep(0.1) self.tb_snd.run() udp_snd.disconnect() self.timeout = False |