mirror of https://github.com/winsw/winsw
Fix tests
parent
39e4bd1cde
commit
d9837d432c
|
@ -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 =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue