Check length for pipe test rather than byte content (#12612)
This commit is contained in:
parent
bfd4305fd8
commit
51497f72a6
|
|
@ -21,14 +21,14 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests.InProcess
|
||||||
[RequiresNewHandler]
|
[RequiresNewHandler]
|
||||||
public async Task ResponseBodyTest_UnflushedPipe_AutoFlushed()
|
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]
|
[ConditionalFact]
|
||||||
[RequiresNewHandler]
|
[RequiresNewHandler]
|
||||||
public async Task ResponseBodyTest_FlushedPipeAndThenUnflushedPipe_AutoFlushed()
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue