Skip to content

Commit

Permalink
Don't fail test if there's no asset released.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwindalmir committed Jun 24, 2022
1 parent 60e16cc commit 26f53dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Common/UpdaterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public void GetMatchingAssetTest(string prefix)
var updateChecker = new UpdateChecker(prereleases: true);
var asset = updateChecker.GetLatestRelease().GetMatchingAsset(prefix);

Assert.That(asset, Is.Not.Null);
if (asset == null)
Assert.Inconclusive("No asset for the latest release, cannot continue test.");

Assert.That(asset.Id, Is.Not.Zero);
Assert.That(asset.Url, Is.Not.Null.And.Not.Empty.And.Contains($"{prefix}WorkshopTool"));
}
Expand Down

0 comments on commit 26f53dd

Please sign in to comment.