test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V3] tests/external_mempool_handler: optimize function parameters
@ 2023-01-12  5:11 Dukai Yuan
  2023-01-13  2:45 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Dukai Yuan @ 2023-01-12  5:11 UTC (permalink / raw)
  To: dts; +Cc: Dukai Yuan

Currently, using parameter 'interval' by default 0.01 to send packets too fast will cause test failed.
So modify default 'interval=0.01' to 'interval=0.05' to make send packets slowly.

Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
 tests/TestSuite_external_mempool_handler.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py
index aa22a35a..58971e31 100644
--- a/tests/TestSuite_external_mempool_handler.py
+++ b/tests/TestSuite_external_mempool_handler.py
@@ -63,7 +63,9 @@ class TestExternalMempool(TestCase):
         rx_port = self.tester.get_local_port(self.dut_ports[0])
         tgen_input.append((tx_port, rx_port))
 
-        result = self.tester.check_random_pkts(tgen_input, allow_miss=False)
+        result = self.tester.check_random_pkts(
+            tgen_input, interval=0.05, allow_miss=False
+        )
 
         self.pmdout.quit()
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-13  2:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12  5:11 [dts][PATCH V3] tests/external_mempool_handler: optimize function parameters Dukai Yuan
2023-01-13  2:45 ` lijuan.tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).