From 0ae2639a653af6ad396586e91ee7a5b8cb871445 Mon Sep 17 00:00:00 2001 From: Caelan Date: Fri, 20 Sep 2024 22:26:44 -0600 Subject: [PATCH] Attempt to fix deployment test in the event of a race condition. --- test/Velopack.Packaging.Tests/AzureDeploymentTests.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/Velopack.Packaging.Tests/AzureDeploymentTests.cs b/test/Velopack.Packaging.Tests/AzureDeploymentTests.cs index add221e6..c342c7cf 100644 --- a/test/Velopack.Packaging.Tests/AzureDeploymentTests.cs +++ b/test/Velopack.Packaging.Tests/AzureDeploymentTests.cs @@ -56,6 +56,12 @@ public class AzureDeploymentTests // download latest version and create delta repo.DownloadLatestFullPackageAsync(options).GetAwaiterResult(); + + if (options.ReleaseDir.EnumerateFiles("*.incomplete").Any()) { + logger.Warn("A previous package was not downloaded, probably due to invalid checksum. This is a race condition in this test."); + latest = null; + } + var id = "AZTestApp"; TestApp.PackTestApp(id, newVer.ToFullString(), $"az-{DateTime.UtcNow.ToLongDateString()}", releaseDir, logger, channel: channel); if (latest != null) {