Skip to content

Commit a28e25a

Browse files
committed
use const in test
1 parent bb0592b commit a28e25a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integration-tests/stateManagementStreamableHttp.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Client } from '../client/index.js';
55
import { StreamableHTTPClientTransport } from '../client/streamableHttp.js';
66
import { McpServer } from '../server/mcp.js';
77
import { StreamableHTTPServerTransport } from '../server/streamableHttp.js';
8-
import { CallToolResultSchema, ListToolsResultSchema, ListResourcesResultSchema, ListPromptsResultSchema } from '../types.js';
8+
import { CallToolResultSchema, ListToolsResultSchema, ListResourcesResultSchema, ListPromptsResultSchema, DEFAULT_NEGOTIATED_PROTOCOL_VERSION } from '../types.js';
99
import { z } from 'zod';
1010

1111
describe('Streamable HTTP Transport Session Management', () => {
@@ -227,7 +227,7 @@ describe('Streamable HTTP Transport Session Management', () => {
227227
await client.connect(transport);
228228

229229
// Verify protocol version is set after connecting
230-
expect(transport.protocolVersion).toBe('2025-03-26');
230+
expect(transport.protocolVersion).toBe(DEFAULT_NEGOTIATED_PROTOCOL_VERSION);
231231

232232
// Clean up
233233
await transport.close();

0 commit comments

Comments
 (0)