Fix tests

pull/853/head
Next Turn 2021-08-09 13:28:50 +08:00
parent 39e4bd1cde
commit d9837d432c
1 changed files with 3 additions and 2 deletions

View File

@ -210,10 +210,11 @@ namespace WinSW.Tests
await this.TestClientServerAsync(
async (source, dest) =>
{
var exception = await Assert.ThrowsAsync<WebException>(
var exception = await Assert.ThrowsAsync<IOException>(
async () => await new Download(source, dest, true).PerformAsync());
Assert.Equal(WebExceptionStatus.ProtocolError, exception.Status);
var inner = Assert.IsType<WebException>(exception.InnerException);
Assert.Equal(WebExceptionStatus.ProtocolError, inner.Status);
},
context =>
{