From dfe93a4e38895a7687365605076b220a44ac4fdc Mon Sep 17 00:00:00 2001 From: Kumaresh Babu JP <100332470+kbabujp@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:47:35 +0530 Subject: [PATCH] Modifying condition check in apr stress case for incomplete arp (#16372) The actual number of arp request sent is tgt_conntrack_cnt but in verification it is multiplied by 0.1. This is causing the test to fail and hence modifying the condition check. --- tests/arp/test_stress_arp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/arp/test_stress_arp.py b/tests/arp/test_stress_arp.py index 4710bfe7335..2ae8dbcc408 100644 --- a/tests/arp/test_stress_arp.py +++ b/tests/arp/test_stress_arp.py @@ -250,6 +250,7 @@ def send_ipv6_echo_request(ptfadapter, dut_mac, ip_and_intf_info, ptf_intf_index def test_ipv6_nd_incomplete(duthost, ptfhost, config_facts, tbinfo, ip_and_intf_info, ptfadapter, get_function_completeness_level, proxy_arp_enabled): + _, _, ptf_intf_ipv6_addr, _, ptf_intf_index = ip_and_intf_info ptf_intf_ipv6_addr = increment_ipv6_addr(ptf_intf_ipv6_addr) pytest_require(proxy_arp_enabled, 'Proxy ARP not enabled for all VLANs') @@ -292,7 +293,7 @@ def test_ipv6_nd_incomplete(duthost, ptfhost, config_facts, tbinfo, ip_and_intf_ conntrack_cnt_post = int(duthost.command("cat /proc/sys/net/netfilter/nf_conntrack_count")["stdout"]) logger.info("nf_conntrack_count post test: {}".format(conntrack_cnt_post)) - pytest_assert((conntrack_cnt_post - conntrack_cnt_pre) < tgt_conntrack_cnt * 0.1, + pytest_assert((conntrack_cnt_post - conntrack_cnt_pre) < tgt_conntrack_cnt, "{} echo requests cause large increase in conntrack entries".format(tgt_conntrack_cnt)) pytest_assert("[UNREPLIED]" not in duthost.command("conntrack -f ipv6 -L dying")["stdout"],