From 51497f72a6ec933a82139a0f1886fec7c1f02eb8 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Fri, 26 Jul 2019 09:59:08 -0700 Subject: [PATCH] Check length for pipe test rather than byte content (#12612) --- .../Common.FunctionalTests/Inprocess/ResponseBodyTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs index 18901979ca..55f1462404 100644 --- a/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs +++ b/src/Servers/IIS/IIS/test/Common.FunctionalTests/Inprocess/ResponseBodyTests.cs @@ -21,14 +21,14 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess [RequiresNewHandler] public async Task ResponseBodyTest_UnflushedPipe_AutoFlushed() { - Assert.Equal(new byte[10], await _fixture.Client.GetByteArrayAsync($"/UnflushedResponsePipe")); + Assert.Equal(10, (await _fixture.Client.GetByteArrayAsync($"/UnflushedResponsePipe")).Length); } [ConditionalFact] [RequiresNewHandler] public async Task ResponseBodyTest_FlushedPipeAndThenUnflushedPipe_AutoFlushed() { - Assert.Equal(new byte[20], await _fixture.Client.GetByteArrayAsync($"/FlushedPipeAndThenUnflushedPipe")); + Assert.Equal(20, (await _fixture.Client.GetByteArrayAsync($"/FlushedPipeAndThenUnflushedPipe")).Length); } } }