Skip to content

Commit

Permalink
(chocolatey#1485) Fix integration tests on non-Windows
Browse files Browse the repository at this point in the history
This commit adds the attributes to make the tests only execute on
Windows.  Given the usage of file:// which is a Windows only construct,
these tests will never work on non-Windows.  The check that is being
done is a simple sanity check that the output is being created, so
running this only for Windows is enough.
  • Loading branch information
gep13 committed Apr 30, 2024
1 parent ad6ff57 commit d0b0d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ public void Should_contain_message_with_source()
}

[Fact]
[WindowsOnly]
[Platform(Exclude = "Mono")]
public void Should_contain_message_with_download_uri()
{
var packagePath = "file:///{0}/{1}.{2}{3}".FormatWith(Configuration.Sources.Replace("\\","/"), Configuration.PackageNames,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ public void Should_contain_message_with_source()
}

[Fact]
[WindowsOnly]
[Platform(Exclude = "Mono")]
public void Should_contain_message_with_download_uri()
{
var packagePath = "file:///{0}/{1}.{2}{3}".FormatWith(Configuration.Sources.Replace("\\", "/"), Configuration.PackageNames,
Expand Down

0 comments on commit d0b0d50

Please sign in to comment.