fixed unit test

This commit is contained in:
John Andrews
2024-10-22 09:24:54 +13:00
parent c6e211755f
commit afcb66dc77

View File

@@ -138,6 +138,11 @@ public class CreateThumbnail : VideoNode
args.Logger?.ELog("Failed to resize thumbnail: " + error);
return 2;
}
#if(DEBUG)
// unit test doesnt have image helper
if (File.Exists(resizedThumbnailPath) == false && File.Exists(thumbnailPath))
resizedThumbnailPath = thumbnailPath;
#endif
if (args.FileService.FileMove(resizedThumbnailPath, output).Failed(out error))
{