Skip to content

Commit 9bc3206

Browse files
authored
Add assertion to check bossdevice reboot status
1 parent 2a9e142 commit 9bc3206

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/commonSetupTests.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ function setupBossdevice(testCase)
2020

2121
% Initialize bossdevice object
2222
testCase.bd = bossdevice;
23-
23+
24+
testCase.assertThat(@() bossapi.tg.pingTarget(testCase.bd.targetObject),...
25+
Eventually(IsTrue,"WithTimeoutOf",60),'Should wait until bossdevice has rebooted.');
26+
2427
% Update target and wait until it has rebooted
2528
testCase.bd.targetObject.update;
2629

0 commit comments

Comments
 (0)