Fix race in KestrelInMemoryConnection (#233)
* Also remove some duplication from WithStdioServerTransport and WithStreamServerTransport
This commit is contained in:
parent
82510d5629
commit
3a2e9a228d
1 changed files with 16 additions and 22 deletions
|
|
@ -148,7 +148,7 @@ public class SseClientTransportTests : LoggedTest
|
|||
|
||||
var eventSourcePipe = new Pipe();
|
||||
var eventSourceData = "event: endpoint\r\ndata: /sseendpoint\r\n\r\n"u8;
|
||||
Assert.True(eventSourceData.TryCopyTo(eventSourcePipe.Writer.GetSpan()));
|
||||
eventSourceData.CopyTo(eventSourcePipe.Writer.GetSpan(eventSourceData.Length));
|
||||
eventSourcePipe.Writer.Advance(eventSourceData.Length);
|
||||
await eventSourcePipe.Writer.FlushAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue