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:
parent
c0440760ac
commit
aa75f6f37e
1 changed files with 1940 additions and 53 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue