Skip to content

Commit

Permalink
Fix blocking warning
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardSmit committed Dec 15, 2023
1 parent 06f546f commit dfbd822
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/Test/Unit/TestRentedOutgoingMemory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task TestNonBlocking()

// Assert
Assert.Equal(waitTask, completedTask);
Assert.False(waitTask.Result);
Assert.False(!waitTask.IsCompleted || await waitTask);
Assert.True(didSend);
}

Expand All @@ -39,6 +39,7 @@ public async Task TestBlocking()

// Assert
Assert.Equal(timeoutTask, completedTask);
Assert.False(waitTask.IsCompleted);
}

[Fact]
Expand All @@ -58,7 +59,7 @@ public async Task TestBlockingCompleted()

// Assert
Assert.Equal(waitTask, completedTask);
Assert.True(waitTask.Result);
Assert.True(waitTask.IsCompleted && await waitTask);
Assert.False(didSend);
}
}

0 comments on commit dfbd822

Please sign in to comment.