From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 18BDD423B1; Thu, 12 Jan 2023 06:20:46 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8ECE40A7D; Thu, 12 Jan 2023 06:20:45 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 89F8F400EF for ; Thu, 12 Jan 2023 06:20:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673500844; x=1705036844; h=from:to:cc:subject:date:message-id; bh=suiP/BT8EIoFGxhLHHWQTgW3zz3OVgNx5Sr11CMrtKA=; b=bnmPSCFvHPhflVeS3QKJUY5rc6WfhBJpY//xx1GvyIFYgFmMC3EjQ8PV NhBB7dB2uwpev598Fkhy2IYSUOkJRiZZJbVvj1+L49SP3krVGHg/I32GN gV3nhROuyljDDJ8XPZSx8RbjloVlkmkdCZDUjvkHuGNP3ec8MKmyQPuN+ NeKn9HYb6hovVx9T06H0ezEVrVlcQrBoF1kY5lrKAa+iH0KuarUrMpB78 eRe7D9Pqxj0k/SlMMpP9x1eRaeLalTWsr4b5tGPpvMkoyLe5E33ykZTv5 TunX3CfVMr+XU6DDAPpk/Vk8wbLbRKupb+FfmzpIPj4bOZC/nWyb+uyJK w==; X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="303993562" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="303993562" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 21:15:55 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10586"; a="746421714" X-IronPort-AV: E=Sophos;i="5.96,319,1665471600"; d="scan'208";a="746421714" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2023 21:15:49 -0800 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V3] tests/external_mempool_handler: optimize function parameters Date: Thu, 12 Jan 2023 13:11:03 +0800 Message-Id: <20230112051103.26612-1-dukaix.yuan@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- 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