Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Fix broken unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
halter73 committed Jun 9, 2017
1 parent 5bd432e commit 98be991
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public async Task CopyToAsyncDoesNotCompletePipeReader()
}

[Fact]
public async Task ConsumeAsyncCompletesPipeReader()
public async Task ConsumeAsyncConsumesAllRemainingInput()
{
using (var input = new TestInput())
{
Expand All @@ -360,7 +360,7 @@ public async Task ConsumeAsyncCompletesPipeReader()

await body.ConsumeAsync();

await Assert.ThrowsAsync<InvalidOperationException>(async () => await body.ReadAsync(new ArraySegment<byte>(new byte[1])));
Assert.Equal(0, await body.ReadAsync(new ArraySegment<byte>(new byte[1])));
}
}

Expand Down

0 comments on commit 98be991

Please sign in to comment.