make integrated tests more robust

This commit is contained in:
Jonathan Shook 2022-12-20 20:03:12 -06:00
parent 1416c71d91
commit 1816381f97
3 changed files with 7 additions and 6 deletions

View File

@ -19,7 +19,7 @@ activitydef1 = {
"driver" : "diag",
"cycles" : "0..1500000",
"threads" : "1",
"targetrate" : "500",
"targetrate" : "10",
"op" : {
"log": "type=log modulo=1"
}

View File

@ -18,17 +18,18 @@ activitydef = {
"alias" : "teststartstopdiag",
"driver" : "diag",
"cycles" : "0..1000000000",
"threads" : "25",
"threads" : "5",
"interval" : "2000",
"op" : "noop"
"op" : "noop",
"rate" : "5"
};
print('starting activity teststartstopdiag');
scenario.start(activitydef);
print('waiting 500 ms');
scenario.waitMillis(500);
print('waited, stopping activity teststartstopdiag');
scenario.stop(activitydef);

View File

@ -96,8 +96,8 @@ class ExitStatusIntegrationTests {
);
String stdout = String.join("\n", result.getStdoutData());
String stderr = String.join("\n", result.getStderrData());
assertThat(result.exception).isNotNull();
assertThat(result.exception.getMessage()).contains("diag space was configured to throw");
assertThat(result.exitStatus).isEqualTo(2);
assertThat(stderr).contains("diag space was configured to throw");
}
}