Просмотр исходного кода

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

Samien 1 месяц назад
Родитель
Сommit
bf35fb53e0
1 измененных файлов с 1 добавлено и 1 удалено
  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)