diff --git a/tests/commonSetupTests.m b/tests/commonSetupTests.m index 39bb709..4fc9037 100644 --- a/tests/commonSetupTests.m +++ b/tests/commonSetupTests.m @@ -6,6 +6,10 @@ isSGinstalled end + properties (ClassSetupParameter) + waitTimeReboot = 10; + end + methods (TestClassSetup) function setupBossdevice(testCase) import matlab.unittest.constraints.Eventually @@ -25,7 +29,7 @@ function setupBossdevice(testCase) Eventually(IsTrue,"WithTimeoutOf",60),'Should wait until bossdevice has rebooted.'); % Wait additional seconds since the target may respond ping but not be ready yet - pause(5); + pause(testCase.waitTimeReboot); end end @@ -49,7 +53,7 @@ function rebootTarget(testCase) Eventually(IsTrue,"WithTimeoutOf",60),'Should wait until bossdevice has rebooted.'); % Wait additional seconds since the target may respond ping but not be ready yet - pause(5); + pause(testCase.waitTimeReboot); end end end