Skip to content

Commit

Permalink
[QUIC] Move 0 byte read before semaphore release on test (#100128)
Browse files Browse the repository at this point in the history
  • Loading branch information
liveans committed Mar 22, 2024
1 parent 2820a1e commit a2ce8db
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1249,11 +1249,12 @@ await RunClientServer(
{
await stream.WritesClosed;
}
serverSem.Release();
await clientSem.WaitAsync();
var _ = await stream.ReadAsync(new byte[0]);
serverSem.Release();
await clientSem.WaitAsync();
if (closeServer)
{
expectedError = QuicError.OperationAborted;
Expand Down Expand Up @@ -1281,11 +1282,12 @@ await RunClientServer(
{
await stream.WritesClosed;
}
clientSem.Release();
await serverSem.WaitAsync();
var _ = await stream.ReadAsync(new byte[0]);
clientSem.Release();
await serverSem.WaitAsync();
if (!closeServer)
{
expectedError = QuicError.OperationAborted;
Expand Down

0 comments on commit a2ce8db

Please sign in to comment.