Skip to content

Commit 1289427

Browse files
authored
Update test_memory_exhaustion.py (#9320)
1 parent 5426350 commit 1289427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/platform_tests/test_memory_exhaustion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def tearDown(self, duthosts, enum_rand_one_per_hwsku_hostname,
4949
'Recover {} by PDU reboot failed'.format(hostname))
5050
# Wait until all critical processes are healthy.
5151
wait_critical_processes(duthost)
52-
self.wait_lc_healthy_if_sup(duthost, duthosts)
52+
self.wait_lc_healthy_if_sup(duthost, duthosts, localhost)
5353

5454
def test_memory_exhaustion(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost):
5555
duthost = duthosts[enum_rand_one_per_hwsku_hostname]
@@ -77,7 +77,7 @@ def test_memory_exhaustion(self, duthosts, enum_rand_one_per_hwsku_hostname, loc
7777
'DUT {} did not startup'.format(hostname))
7878
# Wait until all critical processes are healthy.
7979
wait_critical_processes(duthost)
80-
self.wait_lc_healthy_if_sup(duthost, duthosts)
80+
self.wait_lc_healthy_if_sup(duthost, duthosts, localhost)
8181
# Verify DUT uptime is later than the time when the test case started running.
8282
dut_uptime = duthost.get_up_time()
8383
pytest_assert(dut_uptime > dut_datetime, "Device {} did not reboot".format(hostname))

0 commit comments

Comments
 (0)