diff --git a/images/win/scripts/Tests/Haskell.Tests.ps1 b/images/win/scripts/Tests/Haskell.Tests.ps1 index 4bddc57af..903e95da2 100644 --- a/images/win/scripts/Tests/Haskell.Tests.ps1 +++ b/images/win/scripts/Tests/Haskell.Tests.ps1 @@ -36,6 +36,11 @@ Describe "Haskell" { "ghc --version" | Should -MatchCommandOutput $defaultGhcShortVersion } + # Sometimes choco doesn't return version 9, need to check it explicitly https://github.com/chocolatey/choco/issues/2271 + It "Default GHC version is 9" -TestCases $ghcDefaultCases { + "ghc --version" | Should -MatchCommandOutput "9(\.\d+){2,}" + } + It "Cabal is installed" { "cabal --version" | Should -ReturnZeroExitCode }