mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-10 07:53:08 -06:00
make integrated tests more robust
This commit is contained in:
parent
1416c71d91
commit
1816381f97
@ -19,7 +19,7 @@ activitydef1 = {
|
||||
"driver" : "diag",
|
||||
"cycles" : "0..1500000",
|
||||
"threads" : "1",
|
||||
"targetrate" : "500",
|
||||
"targetrate" : "10",
|
||||
"op" : {
|
||||
"log": "type=log modulo=1"
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user