Enable netfx testing. (#588)

* Enable netfx testing.

* Skip impacted tests and re-enable netfx testing.

* Remove redundant comment.

* Remove unnecessary project configuration.

* Simplify test server copying.
This commit is contained in:
Eirik Tsarpalis 2025-07-08 18:50:37 +03:00 • committed by GitHub
commit aa75f6f37e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,10 +15,18 @@ public class SseResponseStreamTransportTests(ITestOutputHelper testOutputHelper)
var transportRunTask = transport.RunAsync(TestContext.Current.CancellationToken);
using var responseStreamReader = new StreamReader(responsePipe.Reader.AsStream());
var firstLine = await responseStreamReader.ReadLineAsync(TestContext.Current.CancellationToken);
var firstLine = await responseStreamReader.ReadLineAsync(
#if NET
TestContext.Current.CancellationToken
#endif
);
Assert.Equal("event: endpoint", firstLine);
var secondLine = await responseStreamReader.ReadLineAsync(TestContext.Current.CancellationToken);
var secondLine = await responseStreamReader.ReadLineAsync(
#if NET
TestContext.Current.CancellationToken
#endif
);
Assert.Equal("data: /my-message-endpoint", secondLine);
responsePipe.Reader.Complete();