fix TestVersionUpgrade for Windows

pull/5082/head
Sharif Elgamal 2019-08-14 12:21:42 -07:00
parent 47c3f25139
commit 36961c90d5
No known key found for this signature in database
GPG Key ID: 23CC0225BD9FD702
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ func TestVersionUpgrade(t *testing.T) {
err := fileExists(fname)
if err != nil { // download file if it is not downloaded by other test
dest := filepath.Join(*testdataDir, fmt.Sprintf("minikube-%s-%s-latest-stable", runtime.GOOS, runtime.GOARCH))
if runtime.GOOS == "windows" {
dest += ".exe"
}
err := downloadMinikubeBinary(t, dest, "latest")
if err != nil {
// binary is needed for the test