Skip to content

Commit 8a1f125

Browse files
lavaman131codex
authored andcommitted
test(chat): keep ownership fixture sessions current
Issue sessions relative to the current clock so ownership claims do not fail after a hardcoded fixture date expires. Preserve all ownership and release assertions. Co-authored-by: GPT-6 Astra <noreply@openai.com>
1 parent aa0aee7 commit 8a1f125

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/chat/hosted.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function grant(accessToken: string): GitHubTokenGrant {
7070

7171
describe("hosted Copilot ownership", () => {
7272
it("keeps the first invoking login session until it is explicitly released", async () => {
73-
let now = new Date("2026-08-13T12:00:00.000Z");
73+
let now = new Date();
7474
let storage = new MemoryStorage();
7575
let key = new Uint8Array(32).fill(9);
7676
for (let [id, login] of [["U_ana", "ana"], ["U_bob", "bob"]]) {

0 commit comments

Comments
 (0)