[test] harden test_srp_server (#10486)

This commit updates `test_srp_server` to wait longer after the start
of the SRP client before performing the test steps. This makes the
test more robust against random jitter which may be applied by the
client when registering.
This commit is contained in:
Abtin Keshavarzian
2024-07-08 15:44:53 -07:00
committed by GitHub
parent 91e5a798f8
commit 821f2415e0
+3 -3
View File
@@ -533,7 +533,7 @@ void TestSrpServerReject(void)
srpClient->EnableAutoStartMode(nullptr, nullptr);
VerifyOrQuit(srpClient->IsAutoStartModeEnabled());
AdvanceTime(2000);
AdvanceTime(15 * 1000);
VerifyOrQuit(srpClient->IsRunning());
SuccessOrQuit(srpClient->SetHostName(kHostName));
@@ -645,7 +645,7 @@ void TestSrpServerIgnore(void)
srpClient->EnableAutoStartMode(nullptr, nullptr);
VerifyOrQuit(srpClient->IsAutoStartModeEnabled());
AdvanceTime(2000);
AdvanceTime(15 * 1000);
VerifyOrQuit(srpClient->IsRunning());
SuccessOrQuit(srpClient->SetHostName(kHostName));
@@ -759,7 +759,7 @@ void TestSrpServerClientRemove(bool aShouldRemoveKeyLease)
srpClient->EnableAutoStartMode(nullptr, nullptr);
VerifyOrQuit(srpClient->IsAutoStartModeEnabled());
AdvanceTime(2000);
AdvanceTime(15 * 1000);
VerifyOrQuit(srpClient->IsRunning());
SuccessOrQuit(srpClient->SetHostName(kHostName));