Skip to content

Commit faa5f7e

Browse files
betegonclaude
andcommitted
test(dsn-cache): increase mtime sleep from 10ms to 50ms for CI reliability
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 94a5260 commit faa5f7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/lib/db/dsn-cache.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ describe("getCachedDetection", () => {
313313
expect(before).toBeDefined();
314314

315315
// Wait a moment and modify the source file
316-
await Bun.sleep(10);
316+
await Bun.sleep(50);
317317
writeFileSync(
318318
join(testProjectDir, "src/app.ts"),
319319
'const DSN = "https://changed@o123.ingest.sentry.io/789";'
@@ -374,7 +374,7 @@ describe("getCachedDetection", () => {
374374
expect(before).toBeDefined();
375375

376376
// Wait and add a new file to change directory mtime
377-
await Bun.sleep(10);
377+
await Bun.sleep(50);
378378
writeFileSync(join(testProjectDir, "new-file.txt"), "test");
379379

380380
// Cache should be invalidated
@@ -408,7 +408,7 @@ describe("getCachedDetection", () => {
408408
expect(before).toBeDefined();
409409

410410
// Wait and add a new file to src/ to change its mtime
411-
await Bun.sleep(10);
411+
await Bun.sleep(50);
412412
writeFileSync(
413413
join(testProjectDir, "src/new-config.ts"),
414414
"export default {}"

0 commit comments

Comments
 (0)