From 0665ebeb1fb7c5b0885264f4cb159880072d5edf Mon Sep 17 00:00:00 2001 From: Konstantin Konstantinov Date: Sun, 7 Dec 2025 14:44:10 +0200 Subject: [PATCH 1/2] fix flaky test --- test/types.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/types.test.ts b/test/types.test.ts index 64bb78a21..78e5bf5a7 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 } }; From 4fe796d8ab416661bc87654e2ca2df172c874b00 Mon Sep 17 00:00:00 2001 From: Konstantin Konstantinov Date: Sun, 7 Dec 2025 15:04:39 +0200 Subject: [PATCH 2/2] flaky test fix --- test/server/streamableHttp.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/server/streamableHttp.test.ts b/test/server/streamableHttp.test.ts index 8d94b272e..be5908f60 100644 --- a/test/server/streamableHttp.test.ts +++ b/test/server/streamableHttp.test.ts @@ -2280,8 +2280,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', () => {