Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt committed May 17, 2022
1 parent b6b81af commit 2968754
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public async Task SslStream_RandomSizeWrites_OK(int bufferSize, int readBufferSi
int writeLength = Math.Min(data.Length, writeBufferSize);
if (useAsync)
{
server.WriteAsync(data.Slice(0, writeLength)).GetAwaiter().GetResult();
server.WriteAsync(data.Slice(0, writeLength)).AsTask().GetAwaiter().GetResult();
}
else
{
Expand All @@ -992,7 +992,7 @@ public async Task SslStream_RandomSizeWrites_OK(int bufferSize, int readBufferSi
{
if (useAsync)
{
readLength = client.ReadAsync(readBuffer.Slice(totalLength, readBufferSize)).GetAwaiter().GetResult();
readLength = client.ReadAsync(readBuffer.Slice(totalLength, readBufferSize)).AsTask().GetAwaiter().GetResult();
}
else
{
Expand Down

0 comments on commit 2968754

Please sign in to comment.