Skip to content

Commit beebb6a

Browse files
committed
test(client-runtime): read the starting environment's state while it connects
1 parent 6ed7fc2 commit beebb6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/client-runtime/src/connection/registry.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,10 +650,10 @@ describe("EnvironmentRegistry", () => {
650650

651651
yield* Effect.gen(function* () {
652652
const registry = yield* EnvironmentRegistry.EnvironmentRegistry;
653-
const state = yield* registry.state(TARGET.environmentId);
653+
expect((yield* registry.state(TARGET.environmentId)).phase).toBe("connecting");
654654

655655
yield* Deferred.await(connectionStarted);
656-
expect(state.phase).toBe("connecting");
656+
expect((yield* registry.state(TARGET.environmentId)).phase).toBe("connecting");
657657
yield* Deferred.succeed(finishConnection, undefined);
658658
}).pipe(Effect.provide(harness.layer), Effect.scoped);
659659
}),

0 commit comments

Comments
 (0)