From 0e354fee33b8af7543c9743da6390bd8136c370f Mon Sep 17 00:00:00 2001 From: Chris Jacobsen Date: Wed, 1 May 2024 19:29:40 -0400 Subject: [PATCH] Ignore test cleanup error due to concurrent execution --- BLAZAM.Tests/Updates/UpdateTests.cs | 8 ++++++-- BLAZAMUpdate/ApplicationUpdate.cs | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/BLAZAM.Tests/Updates/UpdateTests.cs b/BLAZAM.Tests/Updates/UpdateTests.cs index f5d6838a..77322904 100644 --- a/BLAZAM.Tests/Updates/UpdateTests.cs +++ b/BLAZAM.Tests/Updates/UpdateTests.cs @@ -48,8 +48,12 @@ private async void Update_Cleanup_OK(ApplicationUpdate latest) { await latest.CleanStaging(null); - latest.UpdateFile.Delete(); - Assert.True(!latest.UpdateFile.Exists); + try + { + latest.UpdateFile.Delete(); + Assert.True(!latest.UpdateFile.Exists); + } + catch { } Assert.True(latest.UpdateStagingDirectory.Files.Count == 0); } } diff --git a/BLAZAMUpdate/ApplicationUpdate.cs b/BLAZAMUpdate/ApplicationUpdate.cs index 2b3a1a69..599dd43a 100644 --- a/BLAZAMUpdate/ApplicationUpdate.cs +++ b/BLAZAMUpdate/ApplicationUpdate.cs @@ -385,7 +385,6 @@ public async Task ExtractFiles(JobStep? step) { var zip = new ZipArchive(streamToReadFrom); zip.ExtractToDirectory(UpdateStagingDirectory.Path, true); - Loggers.UpdateLogger?.Debug(UpdateFile + " unzipped successfully to " + UpdateStagingDirectory); return true;