Skip to content

Commit da16b80

Browse files
Revert "[drop counters] Add sleep after MTU configuration to avoid test case fail (sonic-net#2641)"
This reverts commit 4b13856.
1 parent 37f9219 commit da16b80

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

tests/drop_packets/test_drop_counters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import ptf.packet as packet
1010
import ptf.testutils as testutils
1111

12-
from tests.common.helpers.assertions import pytest_assert
1312
from tests.common.utilities import wait_until
1413
from drop_packets import * # FIXME
1514

@@ -218,10 +217,6 @@ def base_verification(discard_group, pkt, ptfadapter, duthost, ports_info, tx_du
218217
pytest.fail("Incorrect 'discard_group' specified. Supported values: 'L2' or 'L3'")
219218

220219

221-
def get_intf_mtu(duthost, intf):
222-
return int(duthost.shell("/sbin/ifconfig {} | grep -i mtu | awk '{{print $NF}}'".format(intf))["stdout"])
223-
224-
225220
@pytest.fixture
226221
def mtu_config(duthosts, rand_one_dut_hostname):
227222
""" Fixture which prepare port MTU configuration for 'test_ip_pkt_with_exceeded_mtu' test case """
@@ -243,8 +238,6 @@ def set_mtu(cls, mtu, iface):
243238
else:
244239
raise Exception("Unsupported interface parameter - {}".format(iface))
245240
cls.iface = iface
246-
check_mtu = lambda: get_intf_mtu(duthost, iface) == mtu
247-
pytest_assert(wait_until(5, 1, check_mtu), "MTU on interface {} not updated".format(iface))
248241

249242
@classmethod
250243
def restore_mtu(cls):

0 commit comments

Comments
 (0)