Skip to content

Commit

Permalink
fix unit test under mac os system (prometheus-operator#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechengwei authored Apr 2, 2021
1 parent 4826c90 commit 6a2eac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/versionutil/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"flag"
"fmt"
"os"
"runtime"
"testing"

"github.com/prometheus/common/version"
Expand Down Expand Up @@ -50,7 +51,7 @@ func TestShouldPrintVersion(t *testing.T) {
" build user: test-value\n"+
" build date: test-value\n"+
" go version: test-value\n"+
" platform: linux/amd64", program),
" platform: "+runtime.GOOS+"/amd64", program),
},
}
for tn, tc := range tests {
Expand Down

0 comments on commit 6a2eac3

Please sign in to comment.