diff --git a/starsky/starskytest/starsky.foundation.video/GetDependencies/FfMpegDownloadTest.cs b/starsky/starskytest/starsky.foundation.video/GetDependencies/FfMpegDownloadTest.cs index e1ff286ba..3a5244fb8 100644 --- a/starsky/starskytest/starsky.foundation.video/GetDependencies/FfMpegDownloadTest.cs +++ b/starsky/starskytest/starsky.foundation.video/GetDependencies/FfMpegDownloadTest.cs @@ -22,6 +22,7 @@ public class FfMpegDownloadTest { private const string DependencyFolderName = "FfMpegDownloadTest"; private readonly FfmpegBinariesIndex _exampleFfmpegBinariesIndex; + private readonly bool _isWindows; private readonly FakeIHttpClientHelper _httpClientHelper; private readonly FakeIStorage _storage = new(); @@ -29,6 +30,7 @@ public class FfMpegDownloadTest public FfMpegDownloadTest() { _exampleFfmpegBinariesIndex = CreateExampleFile(); + _isWindows = new AppSettings().IsWindows; _httpClientHelper = new FakeIHttpClientHelper(_storage, @@ -305,6 +307,12 @@ public async Task DownloadFfMpeg_PrepareBeforeRunningFail() var resultPrepFail = await ffmpegDownload.DownloadFfMpeg(); + if ( _isWindows ) + { + Assert.AreEqual(FfmpegDownloadStatus.Ok, resultPrepFail); + return; + } + Assert.AreEqual(FfmpegDownloadStatus.PrepareBeforeRunningFailed, resultPrepFail); }