Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backend/test/setup-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ Object.assign(process.env, TEST_AUTH_SETTINGS, generateTestAuthKeys(), {
// Queues per Jest worker, like the databases: otherwise one suite's app takes another suite's jobs
// (the held transition queue is paused and resumed globally).
BULL_PREFIX: `${process.env.BULL_PREFIX || 'test-bull'}-${process.env.JEST_WORKER_ID ?? '1'}`,
// Rate-limit counters per Jest worker too: flushRedis() in one suite deleted every `test:` key,
// also the counters another suite was checking at that moment (#706).
REDIS_KEY_PREFIX: `${process.env.REDIS_KEY_PREFIX || 'test:'}${process.env.JEST_WORKER_ID ?? '1'}:`,
});
Loading