From 4d6c3b82848870639062980bbf9bd32a114b79cd Mon Sep 17 00:00:00 2001 From: Konstantin Konstantinov Date: Mon, 8 Dec 2025 23:40:18 +0200 Subject: [PATCH] Flaky test fix on Types.test.ts (#1244) Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com> --- test/server/streamableHttp.test.ts | 4 ++-- test/types.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/server/streamableHttp.test.ts b/test/server/streamableHttp.test.ts index 9fc2d30179..0161d82fbc 100644 --- a/test/server/streamableHttp.test.ts +++ b/test/server/streamableHttp.test.ts @@ -2285,8 +2285,8 @@ describe.each(zodTestMatrix)('$zodVersionLabel', (entry: ZodMatrixEntry) => { // Verify we received the notification that was sent while disconnected expect(allText).toContain('Missed while disconnected'); - }); - }, 10000); + }, 10000); + }); // Test onsessionclosed callback describe('StreamableHTTPServerTransport onsessionclosed callback', () => { diff --git a/test/types.test.ts b/test/types.test.ts index 64bb78a21d..78e5bf5a7d 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -178,7 +178,7 @@ describe('Types', () => { annotations: { audience: ['user'], priority: 0.5, - lastModified: new Date().toISOString() + lastModified: mockDate } };