This commit is contained in:
Andras Schmelczer 2025-03-16 10:48:34 +00:00
parent 111134d7e6
commit bb2ff23a4a
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 13 additions and 21 deletions

View file

@ -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}`
); );
} }
} }

View file

@ -109,32 +109,24 @@ 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 agentCount of agentCounts) {
for (const concurrency of concurrencies) {
for (const jitter of networkJitterScaleInSeconds) {
for (const doDeletes of [true, false]) { for (const doDeletes of [true, false]) {
for (const useSlowFileEvents of [true, false]) { for (const useSlowFileEvents of [true, false]) {
await runTest({ await runTest({
agentCount, agentCount: 4,
concurrency, concurrency,
iterations: 200, iterations: 200,
doDeletes, doDeletes,
useSlowFileEvents, useSlowFileEvents,
jitterScaleInSeconds: jitter jitterScaleInSeconds: 0.75
}); });
} }
} }
} }
} }
}
}
process.on("uncaughtException", (error) => { process.on("uncaughtException", (error) => {
if (slowFileEvents) { if (slowFileEvents) {