Skip to content

Commit db2178c

Browse files
committed
Test cleanup
1 parent 3c776ae commit db2178c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/ModelContextProtocol.Tests/SseServerIntegrationTests.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ public async Task EventSourceStream_Includes_MessageEventType()
289289
await using var sseResponse = await httpClient.GetStreamAsync("", TestContext.Current.CancellationToken);
290290
using var streamReader = new StreamReader(sseResponse);
291291

292-
// read event stream from the server
293292
var endpointEvent = await streamReader.ReadLineAsync(TestContext.Current.CancellationToken);
294293
Assert.Equal("event: endpoint", endpointEvent);
295294

@@ -307,16 +306,15 @@ public async Task EventSourceStream_Includes_MessageEventType()
307306
Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
308307
}
309308

310-
const string initializeNotification = """
309+
const string initializedNotification = """
311310
{"jsonrpc":"2.0","method":"notifications/initialized"}
312311
""";
313-
using (var initializeNotificationBody = new StringContent(initializeNotification, Encoding.UTF8, "application/json"))
312+
using (var initializedNotificationBody = new StringContent(initializedNotification, Encoding.UTF8, "application/json"))
314313
{
315-
var response = await httpClient.PostAsync(messageEndpoint, initializeNotificationBody, TestContext.Current.CancellationToken);
314+
var response = await httpClient.PostAsync(messageEndpoint, initializedNotificationBody, TestContext.Current.CancellationToken);
316315
Assert.Equal(HttpStatusCode.Accepted, response.StatusCode);
317316
}
318317

319-
// read event stream from the server
320318
Assert.Equal("", await streamReader.ReadLineAsync(TestContext.Current.CancellationToken));
321319
var messageEvent = await streamReader.ReadLineAsync(TestContext.Current.CancellationToken);
322320
Assert.Equal("event: message", messageEvent);

0 commit comments

Comments
 (0)