Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions tests/saitests/py3/sai_qos_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3505,16 +3505,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:
Expand Down