Skip to content

Commit 5845924

Browse files
committed
DEV clean up
1 parent 8b7972b commit 5845924

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/httpTransport.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ describe('PatternFly MCP, HTTP Transport', () => {
156156

157157
// Send multiple concurrent requests
158158
const requests = Array.from({ length: 3 }, () =>
159-
client.send({ jsonrpc: '2.0', id: 1, method: 'tools/list', params: {} })
160-
);
159+
client.send({ jsonrpc: '2.0', id: 1, method: 'tools/list', params: {} }));
161160

162161
await Promise.all(requests);
163162

tests/utils/httpTransportClient.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ export const startHttpServer = (options: StartHttpServerOptions = {}): Promise<H
208208
} else {
209209
// Handle regular JSON response
210210
const parsed = JSON.parse(data);
211-
211+
212212
// Extract session ID from response if available
213213
if (parsed.result?.sessionId && typeof parsed.result.sessionId === 'string') {
214214
sessionId = parsed.result.sessionId;
215215
}
216-
216+
217217
const entry = pendingRequests.get(id);
218218

219219
if (entry) {
@@ -268,6 +268,7 @@ export const startHttpServer = (options: StartHttpServerOptions = {}): Promise<H
268268
if (response.result?.sessionId && typeof response.result.sessionId === 'string') {
269269
sessionId = response.result.sessionId;
270270
}
271+
271272
return response;
272273
},
273274

@@ -381,7 +382,7 @@ export const createHttpClient = (baseUrl: string): HttpTransportClient => {
381382
} else {
382383
// Handle regular JSON response
383384
const parsed = JSON.parse(data);
384-
385+
385386
// Extract session ID from response if available
386387
if (parsed.result?.sessionId && typeof parsed.result.sessionId === 'string') {
387388
sessionId = parsed.result.sessionId;
@@ -419,12 +420,12 @@ export const createHttpClient = (baseUrl: string): HttpTransportClient => {
419420
}
420421
}
421422
});
422-
423+
423424
// Extract session ID from response if available
424425
if (response.result?.sessionId && typeof response.result.sessionId === 'string') {
425426
sessionId = response.result.sessionId;
426427
}
427-
428+
428429
return response;
429430
},
430431

0 commit comments

Comments
 (0)