clean up
This commit is contained in:
parent
111134d7e6
commit
bb2ff23a4a
2 changed files with 13 additions and 21 deletions
|
|
@ -229,7 +229,7 @@ export class MockAgent extends MockClient {
|
||||||
);
|
);
|
||||||
assert(
|
assert(
|
||||||
fileContent.split(content).length == 2,
|
fileContent.split(content).length == 2,
|
||||||
`Content ${content} (of ${this.name}) found more than once in file ${file}. File content:\n${fileContent}`
|
`Content ${content} (of ${this.name}) found more than once in '${file}'. File content:\n${fileContent}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -109,28 +109,20 @@ async function runTest({
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runTests(): Promise<void> {
|
async function runTests(): Promise<void> {
|
||||||
const agentCounts = [2, 8];
|
for (const concurrency of [
|
||||||
const networkJitterScaleInSeconds = [0.5, 2];
|
|
||||||
const concurrencies = [
|
|
||||||
16,
|
16,
|
||||||
1 // test with concurrency 1 to check for deadlocks
|
1 // test with concurrency 1 to check for deadlocks
|
||||||
];
|
]) {
|
||||||
|
for (const doDeletes of [true, false]) {
|
||||||
for (const agentCount of agentCounts) {
|
for (const useSlowFileEvents of [true, false]) {
|
||||||
for (const concurrency of concurrencies) {
|
await runTest({
|
||||||
for (const jitter of networkJitterScaleInSeconds) {
|
agentCount: 4,
|
||||||
for (const doDeletes of [true, false]) {
|
concurrency,
|
||||||
for (const useSlowFileEvents of [true, false]) {
|
iterations: 200,
|
||||||
await runTest({
|
doDeletes,
|
||||||
agentCount,
|
useSlowFileEvents,
|
||||||
concurrency,
|
jitterScaleInSeconds: 0.75
|
||||||
iterations: 200,
|
});
|
||||||
doDeletes,
|
|
||||||
useSlowFileEvents,
|
|
||||||
jitterScaleInSeconds: jitter
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue