diff options
-rw-r--r-- | gnuradio-core/gnuradio-core.conf.in | 5 | ||||
-rwxr-xr-x | gr-blocks/python/qa_pdu.py | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gnuradio-core/gnuradio-core.conf.in b/gnuradio-core/gnuradio-core.conf.in index 741525e642..4de97e1ea5 100644 --- a/gnuradio-core/gnuradio-core.conf.in +++ b/gnuradio-core/gnuradio-core.conf.in @@ -5,6 +5,11 @@ [DEFAULT] verbose = False +# The maximum number of messages a block will store up before pruning +# the queue by popping messages from the front. +max_messages = 100 + + [LOG] # Levels can be (case insensitive): # trace, debug, info, warn, error, fatal diff --git a/gr-blocks/python/qa_pdu.py b/gr-blocks/python/qa_pdu.py index dc50b7c330..3f7675ce4a 100755 --- a/gr-blocks/python/qa_pdu.py +++ b/gr-blocks/python/qa_pdu.py @@ -51,7 +51,6 @@ class test_pdu(gr_unittest.TestCase): self.assertEqual(pmt.pmt_length(pi), 0) self.assertEqual(pmt.pmt_length(po), 1) - time.sleep(0.1) self.tb.connect(src, snk) self.tb.connect(src, snk2) self.tb.connect(src, snk3) @@ -66,7 +65,7 @@ class test_pdu(gr_unittest.TestCase): src.to_basic_block()._post(port, msg) # eww, what's that smell? while dbg.num_messages() < 1: - time.sleep(0.5) + time.sleep(0.1) self.tb.stop() self.tb.wait() |