Fixed DownloadFile when file already exists

This commit is contained in:
Taloth Saldono
2019-08-31 21:35:01 +02:00
committed by ta264
parent 3c335d498e
commit 5ef55d2180
2 changed files with 8 additions and 3 deletions
@@ -300,12 +300,12 @@ namespace NzbDrone.Common.Test.Http
{
var file = GetTempFilePath();
Assert.Throws<HttpException>(() => Subject.DownloadFile("https://download.readarr.com/wrongpath", file));
Assert.Throws<WebException>(() => Subject.DownloadFile("https://download.readarr.com/wrongpath", file));
File.Exists(file).Should().BeFalse();
File.Exists(file + ".part").Should().BeFalse();
ExceptionVerification.ExpectedWarns(1);
ExceptionVerification.ExpectedWarns(0);
}
[Test]