1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-03-02 03:40:21 +00:00

resolves #52: timeout prevents .after script

Mark .after scripts as executing even after a timeout abort
This commit is contained in:
Oliver Giles
2018-09-09 12:15:23 +03:00
parent a2d30ad2ea
commit ab7be5a6c9
4 changed files with 16 additions and 15 deletions

View File

@@ -105,7 +105,7 @@ TEST_F(RunTest, Abort) {
run.addScript("/usr/bin/yes");
run.step();
usleep(200); // TODO fix
run.abort();
run.abort(false);
wait();
EXPECT_EQ(RunState::ABORTED, run.result);
}
@@ -116,7 +116,7 @@ TEST_F(RunTest, AbortAfterFailed) {
run.addScript("/usr/bin/yes");
run.step();
usleep(200); // TODO fix
run.abort();
run.abort(false);
wait();
EXPECT_EQ(RunState::FAILED, run.result);
}