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

Commit 5224092

Browse files
authored
Update HttpRequestStreamTests.cs
1 parent abe35a2 commit 5224092

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/Kestrel.Core.Tests/HttpRequestStreamTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ public void BeginWriteThrows()
9898
#endif
9999

100100
[Fact]
101-
public void FlushThrows()
101+
// Read-only streams should support Flush according to https://github.com/dotnet/corefx/pull/27327#pullrequestreview-98384813
102+
public void FlushDoesNotThrow()
102103
{
103104
var stream = new HttpRequestStream(Mock.Of<IHttpBodyControlFeature>());
104-
Assert.Throws<NotSupportedException>(() => stream.Flush());
105+
stream.Flush();
105106
}
106107

107108
[Fact]

0 commit comments

Comments
 (0)