Skip to content

Commit ba9013c

Browse files
fix: format test file with Prettier
Fix formatting issues that were causing CI to fail: - Correct indentation on `let transport` declaration - Remove trailing whitespace - Remove extra blank line
1 parent a014363 commit ba9013c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/client/streamableHttp.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ describe('StreamableHTTPClientTransport', () => {
15021502
});
15031503

15041504
describe('Reconnection Logic with maxRetries 0', () => {
1505-
let transport: StreamableHTTPClientTransport;
1505+
let transport: StreamableHTTPClientTransport;
15061506

15071507
// Use fake timers to control setTimeout and make the test instant.
15081508
beforeEach(() => vi.useFakeTimers());
@@ -1540,15 +1540,15 @@ describe('StreamableHTTPClientTransport', () => {
15401540
// ACT
15411541
await transport.start();
15421542
await transport['_startOrAuthSse']({});
1543-
1543+
15441544
// Advance time to check if any retries were scheduled
15451545
await vi.advanceTimersByTimeAsync(100);
15461546

15471547
// ASSERT
15481548
// THE KEY ASSERTION: Fetch was only called ONCE. No retries with maxRetries: 0
15491549
expect(fetchMock).toHaveBeenCalledTimes(1);
15501550
expect(fetchMock.mock.calls[0][1]?.method).toBe('GET');
1551-
1551+
15521552
// Should still report the error but not retry
15531553
expect(errorSpy).toHaveBeenCalledWith(
15541554
expect.objectContaining({
@@ -1558,7 +1558,6 @@ describe('StreamableHTTPClientTransport', () => {
15581558
});
15591559
});
15601560

1561-
15621561
describe('prevent infinite recursion when server returns 401 after successful auth', () => {
15631562
it('should throw error when server returns 401 after successful auth', async () => {
15641563
const message: JSONRPCMessage = {

0 commit comments

Comments
 (0)