Skip to content

Commit 813b5ac

Browse files
committed
test(gateway): publish session config before async setup
1 parent c21953a commit 813b5ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/gateway/server.sessions.create.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,8 +3049,8 @@ test("sessions.create rejects spawnDepth without parentSessionKey", async () =>
30493049
});
30503050

30513051
test("sessions.create leaves dashboard sessions unparented under per-channel-peer dmScope", async () => {
3052-
await createSessionStoreDir();
30533052
testState.sessionConfig = { dmScope: "per-channel-peer" };
3053+
await createSessionStoreDir();
30543054

30553055
const created = await directSessionReq<{
30563056
entry?: { parentSessionKey?: string };
@@ -3061,8 +3061,8 @@ test("sessions.create leaves dashboard sessions unparented under per-channel-pee
30613061
});
30623062

30633063
test("sessions.create leaves dashboard sessions unparented under global session scope", async () => {
3064-
await createSessionStoreDir();
30653064
testState.sessionConfig = { dmScope: "main", scope: "global" };
3065+
await createSessionStoreDir();
30663066

30673067
const created = await directSessionReq<{
30683068
entry?: { parentSessionKey?: string };
@@ -3073,8 +3073,8 @@ test("sessions.create leaves dashboard sessions unparented under global session
30733073
});
30743074

30753075
test("sessions.create does not parent the main session to itself", async () => {
3076-
await createSessionStoreDir();
30773076
testState.sessionConfig = { dmScope: "main" };
3077+
await createSessionStoreDir();
30783078

30793079
const created = await directSessionReq<{
30803080
key?: string;

0 commit comments

Comments
 (0)