Przeglądaj źródła

更新回放测试夹具以验证 Cookie 会话授权

Samien 1 miesiąc temu
rodzic
commit
bf35fb53e0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tests/server/ordinaryTranscriptReplay.test.ts

+ 1 - 1
tests/server/ordinaryTranscriptReplay.test.ts

@@ -33,7 +33,7 @@ it.each([300, 1000])('replays %i committed events through the HTTP router before
   }
   const finalCursor = store.transcripts.cursor(...scope)
   const auth = {
-    require: () => ({ id: scope[0] }), current: () => ({ id: scope[0] }),
+    require: () => ({ id: scope[0] }), currentFromCookieHeader: () => ({ id: scope[0] }),
     canUseSource: () => true, isUserActive: () => true, pushAuthorizationVersion: () => 1,
   } as unknown as LocalAuthStore
   const router = chatTranscriptRouter({ store, schedule: () => {} } as unknown as ChatCacheCoordinator, auth)