diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2021-03-28 14:51:21 -0500 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2021-03-30 16:05:00 -0500 |
| commit | 3221757bb210b23e4c8d859d20aa20b43c0df582 (patch) | |
| tree | 4391705303589d48a5f93ac1ba9c5701c9daeba7 /src/TestBA | |
| parent | 7cc4271c9d78ed60e354f585d03b612a9efb7cf3 (diff) | |
| download | wix-3221757bb210b23e4c8d859d20aa20b43c0df582.tar.gz wix-3221757bb210b23e4c8d859d20aa20b43c0df582.tar.bz2 wix-3221757bb210b23e4c8d859d20aa20b43c0df582.zip | |
Port the update bundle tests from old repo.
Diffstat (limited to 'src/TestBA')
| -rw-r--r-- | src/TestBA/TestBA.cs | 11 |
1 files changed, 3 insertions, 8 deletions
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 | |||
| 178 | { | 178 | { |
| 179 | // The list of updates is sorted in descending version, so the first callback should be the largest update available. | 179 | // The list of updates is sorted in descending version, so the first callback should be the largest update available. |
| 180 | // This update should be either larger than ours (so we are out of date), the same as ours (so we are current) | 180 | // This update should be either larger than ours (so we are out of date), the same as ours (so we are current) |
| 181 | // or smaller than ours (we have a private build). If we really wanted to, we could leave the e.StopProcessingUpdates alone and | 181 | // or smaller than ours (we have a private build). |
| 182 | // enumerate all of the updates. | 182 | // Enumerate all of the updates anyway in case something's broken. |
| 183 | this.Log(String.Format("Potential update v{0} from '{1}'; current version: v{2}", e.Version, e.UpdateLocation, this.Version)); | 183 | this.Log(String.Format("Potential update v{0} from '{1}'; current version: v{2}", e.Version, e.UpdateLocation, this.Version)); |
| 184 | if (this.Engine.CompareVersions(e.Version, this.Version) > 0) | 184 | if (!this.UpdateAvailable && this.Engine.CompareVersions(e.Version, this.Version) > 0) |
| 185 | { | 185 | { |
| 186 | this.Log(String.Format("Selected update v{0}", e.Version)); | 186 | this.Log(String.Format("Selected update v{0}", e.Version)); |
| 187 | this.Engine.SetUpdate(null, e.UpdateLocation, e.Size, UpdateHashType.None, null); | 187 | this.Engine.SetUpdate(null, e.UpdateLocation, e.Size, UpdateHashType.None, null); |
| 188 | this.UpdateAvailable = true; | 188 | this.UpdateAvailable = true; |
| 189 | } | 189 | } |
| 190 | else | ||
| 191 | { | ||
| 192 | this.UpdateAvailable = false; | ||
| 193 | } | ||
| 194 | e.StopProcessingUpdates = true; | ||
| 195 | } | 190 | } |
| 196 | 191 | ||
| 197 | protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) | 192 | protected override void OnDetectUpdateComplete(DetectUpdateCompleteEventArgs e) |
