Skip to content

Commit 4d6c3b8

Browse files
Flaky test fix on Types.test.ts (#1244)
Co-authored-by: Felix Weinberger <3823880+felixweinberger@users.noreply.github.com>
1 parent fbf5fc9 commit 4d6c3b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/server/streamableHttp.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,8 +2285,8 @@ describe.each(zodTestMatrix)('$zodVersionLabel', (entry: ZodMatrixEntry) => {
22852285

22862286
// Verify we received the notification that was sent while disconnected
22872287
expect(allText).toContain('Missed while disconnected');
2288-
});
2289-
}, 10000);
2288+
}, 10000);
2289+
});
22902290

22912291
// Test onsessionclosed callback
22922292
describe('StreamableHTTPServerTransport onsessionclosed callback', () => {

test/types.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe('Types', () => {
178178
annotations: {
179179
audience: ['user'],
180180
priority: 0.5,
181-
lastModified: new Date().toISOString()
181+
lastModified: mockDate
182182
}
183183
};
184184

0 commit comments

Comments
 (0)