Check length for pipe test rather than byte content (#12612)

This commit is contained in:
Justin Kotalik 2019-07-26 09:59:08 -07:00 committed by GitHub
parent bfd4305fd8
commit 51497f72a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}