From e0e504ce4068b2f1c04380af408e08322cc82bcf Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 23 Oct 2024 09:36:40 +1300 Subject: [PATCH] fix race condition in Micro tests (#3815) --- packages/effect/test/Micro.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/effect/test/Micro.test.ts b/packages/effect/test/Micro.test.ts index 268bfabdb7..9f488abda7 100644 --- a/packages/effect/test/Micro.test.ts +++ b/packages/effect/test/Micro.test.ts @@ -195,8 +195,8 @@ describe.concurrent("Micro", () => { Micro.sync(() => { done.push(i) return i - }).pipe(Micro.delay(50)), { concurrency: "unbounded" }).pipe(Micro.fork) - yield* Micro.sleep(25) + }).pipe(Micro.delay(150)), { concurrency: "unbounded" }).pipe(Micro.fork) + yield* Micro.sleep(50) yield* handle.interrupt const result = yield* handle.await assert.deepStrictEqual(result, Micro.exitInterrupt) @@ -210,8 +210,8 @@ describe.concurrent("Micro", () => { Micro.sync(() => { done.push(i) return i - }).pipe(Micro.delay(100)), { concurrency: 2 }).pipe(Micro.fork) - yield* Micro.sleep(150) + }).pipe(Micro.delay(200)), { concurrency: 2 }).pipe(Micro.fork) + yield* Micro.sleep(300) yield* handle.interrupt const result = yield* handle.await assert.deepStrictEqual(result, Micro.exitInterrupt)