[V3] tests/external_mempool_handler: optimize function parameters
Checks
Context |
Check |
Description |
ci/Intel-dts-format-test |
success
|
Testing OK
|
ci/Intel-dts-pylama-test |
success
|
Testing OK
|
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
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(-)
Comments
On Thu, 12 Jan 2023 13:11:03 +0800, Dukai Yuan <dukaix.yuan@intel.com> wrote:
> 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>
Applied, thanks
@@ -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()