From 3221757bb210b23e4c8d859d20aa20b43c0df582 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sun, 28 Mar 2021 14:51:21 -0500 Subject: Port the update bundle tests from old repo. --- src/TestBA/TestBA.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/TestBA') diff --git a/src/TestBA/TestBA.cs b/src/TestBA/TestBA.cs index f86a5807..18b1fd0c 100644 --- a/src/TestBA/TestBA.cs +++ b/src/TestBA/TestBA.cs @@ -178,20 +178,15 @@ namespace WixToolset.Test.BA { // The list of updates is sorted in descending version, so the first callback should be the largest update available. // This update should be either larger than ours (so we are out of date), the same as ours (so we are current) - // or smaller than ours (we have a private build). If we really wanted to, we could leave the e.StopProcessingUpdates alone and - // enumerate all of the updates. + // or smaller than ours (we have a private build). + // Enumerate all of the updates anyway in case something's broken. this.Log(String.Format("Potential update v{0} from '{1}'; current version: v{2}", e.Version, e.UpdateLocation, this.Version)); - if (this.Engine.CompareVersions(e.Version, this.Version) > 0) + if (!this.UpdateAvailable && this.Engine.CompareVersions(e.Version, this.Version) > 0) { this.Log(String.Format("Selected update v{0}", e.Version)); this.Engine.SetUpdate(null, e.UpdateLocation, e.Size, UpdateHashType.None, null); this.UpdateAvailable = true; } - else - { - this.UpdateAvailable = false; - } - e.StopProcessingUpdates = true; } protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) -- cgit v1.2.3-55-g6feb