Skip to content

Commit

Permalink
Define waitTimeReboot as class setup parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorcum committed Feb 24, 2024
1 parent b7c4ff9 commit 13627d4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/commonSetupTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
isSGinstalled
end

properties (ClassSetupParameter)
waitTimeReboot = 10;
end

methods (TestClassSetup)
function setupBossdevice(testCase)
import matlab.unittest.constraints.Eventually
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 13627d4

Please sign in to comment.