From 39d1cc49ca6e74582bd7df93d570a0c0f25d72c1 Mon Sep 17 00:00:00 2001 From: rbpittman Date: Thu, 7 Nov 2024 04:17:01 -0500 Subject: [PATCH] Revise after XON counter change. (#15400) --- tests/saitests/py3/sai_qos_tests.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/saitests/py3/sai_qos_tests.py b/tests/saitests/py3/sai_qos_tests.py index eb3373596b4..2d649a4221e 100755 --- a/tests/saitests/py3/sai_qos_tests.py +++ b/tests/saitests/py3/sai_qos_tests.py @@ -3504,16 +3504,7 @@ def get_pfc_tx_cnt(src_port_id, pg_cntr_idx): pfc_tx_cnt_base = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) time.sleep(2) xoff_txd = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) - pfc_tx_cnt_base - print("Verifying XOFF TX, count {}".format(xoff_txd), file=sys.stderr) - assert xoff_txd != 0, "Expected XOFF" - - # TODO: Revisit when TX counter in this case is correctly handled - send_packet(self, src_port_id, pkt, 1) - time.sleep(2) - pfc_tx_cnt_base = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) - time.sleep(2) - xoff_txd = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) - pfc_tx_cnt_base - print("Verifying XOFF TX stopped, count {}".format(xoff_txd), file=sys.stderr) + print("Verifying no XOFF TX, count {}".format(xoff_txd), file=sys.stderr) assert xoff_txd == 0, "Unexpected XOFF" finally: