Allow multiple E2E test iterations

This commit is contained in:
Andras Schmelczer 2025-05-24 13:23:17 +01:00
commit 4040c98754
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -4,6 +4,8 @@ import { sleep } from "./utils/sleep";
import { v4 as uuidv4 } from "uuid";
import { randomCasing } from "./utils/random-casing";
const TEST_ITERATIONS = 5;
// Simulate async file access by injecting waiting time before returning from file operations.
let slowFileEvents = false;
@ -109,6 +111,7 @@ async function runTest({
}
async function runTests(): Promise<void> {
for (let i = 0; i < TEST_ITERATIONS; i++) {
for (const useSlowFileEvents of [false, true]) {
for (const concurrency of [
16,
@ -127,6 +130,7 @@ async function runTests(): Promise<void> {
}
}
}
}
process.on("uncaughtException", (error) => {
if (slowFileEvents) {