1
0
Fork 0
mirror of https://code.forgejo.org/actions/go-versions synced 2025-06-09 20:12:24 +02:00

fixed tests

This commit is contained in:
Nikita Bykov 2020-08-24 19:05:27 +03:00
parent e3b3c821ce
commit 01def397b3

View file

@ -24,7 +24,7 @@ Describe "Go" {
} }
It "version is correct" { It "version is correct" {
$versionOutput = '$(go version) -match "go(?<version>\d+\.\d+\.\d+)" | Out-Null', '$Matches.Version' | Invoke-Expression $versionOutput = Invoke-Expression "go version"
$versionOutput | Should -Match $Version $versionOutput | Should -Match $Version
} }