From 7d973e30fd5c2fea3b6d8e33dab97815edc9c94a Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 5 May 2025 18:33:59 +0200 Subject: [PATCH 1/2] test: fix test_ha_multiple_mgmt_server_ownership in test_hostha_simulator.py this fixes the test failure below ``` ====================================================================== FAIL: Tests ha resource ownership expiry across multi-mgmt server ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/test/integration/smoke/test_hostha_simulator.py", line 462, in test_ha_multiple_mgmt_server_ownership self.fail("Management server failed to turn down or remove fake mgmt server") AssertionError: Management server failed to turn down or remove fake mgmt server ---------------------------------------------------------------------- Ran 19 tests in 277.481s ``` --- test/integration/smoke/test_hostha_simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke/test_hostha_simulator.py b/test/integration/smoke/test_hostha_simulator.py index 1b3dd815a308..20d77e82743e 100644 --- a/test/integration/smoke/test_hostha_simulator.py +++ b/test/integration/smoke/test_hostha_simulator.py @@ -457,7 +457,7 @@ def checkHaOwnershipExpiry(fakeMsId): retry_interval = 1 + (pingInterval * pingTimeout / 10) - res, _ = wait_until(retry_interval, 20, removeFakeMgmtServer, self.getFakeMsRunId()) + res, _ = wait_until(retry_interval, 100, removeFakeMgmtServer, self.getFakeMsRunId()) if not res: self.fail("Management server failed to turn down or remove fake mgmt server") From a90f26389a6a6423b55bdfa67375274c35a5e55f Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 5 May 2025 20:36:56 +0200 Subject: [PATCH 2/2] test: this may fix test_outofbandmanagement.py --- test/integration/smoke/test_outofbandmanagement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke/test_outofbandmanagement.py b/test/integration/smoke/test_outofbandmanagement.py index 79762719f69d..3c2114dac9ae 100644 --- a/test/integration/smoke/test_outofbandmanagement.py +++ b/test/integration/smoke/test_outofbandmanagement.py @@ -544,7 +544,7 @@ def checkOobmOwnershipExpiry(serverPort, fakeMsId): retry_interval = 1 + (pingInterval * pingTimeout / 10) - res, _ = wait_until(retry_interval, 10, removeFakeMgmtServer, self.getFakeMsRunId()) + res, _ = wait_until(retry_interval, 100, removeFakeMgmtServer, self.getFakeMsRunId()) if not res: self.fail("Management server failed to turn down or remove fake mgmt server")