Skip to content

Commit acbb949

Browse files
committed
test(server): use project timeout for reader isolation check
1 parent 1d87f88 commit acbb949

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/server/src/orchestration-v2/FoundationPersistence.test.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3291,12 +3291,10 @@ it.effect("loads a shell snapshot while the writer connection is occupied", () =
32913291
)
32923292
.pipe(Effect.forkChild);
32933293
yield* Deferred.await(held);
3294-
const snapshot = yield* projections
3295-
.getShellSnapshot()
3296-
.pipe(Effect.timeoutOption("2 seconds"));
3294+
const snapshot = yield* projections.getShellSnapshot();
32973295
yield* Deferred.succeed(release, undefined);
32983296
yield* Fiber.join(writer);
3299-
assert.isTrue(Option.isSome(snapshot));
3297+
assert.deepEqual(snapshot.threads, []);
33003298
}).pipe(Effect.provide(projectionLayer));
33013299
}).pipe(Effect.scoped, Effect.provide(NodeServices.layer)),
33023300
);

0 commit comments

Comments
 (0)