Update integration test

pull/6586/head
Priya Wadhwa 2020-02-11 13:18:04 -08:00
parent 0e84fd61ea
commit 996f4e7ede
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"strings"
"testing"
"time"
@ -83,7 +84,7 @@ func TestDownloadOnly(t *testing.T) {
// checking binaries downloaded (kubelet,kubeadm)
for _, bin := range constants.KubernetesReleaseBinaries {
fp := filepath.Join(localpath.MiniPath(), "cache", v, bin)
fp := filepath.Join(localpath.MiniPath(), "cache", runtime.GOOS, v, bin)
_, err := os.Stat(fp)
if err != nil {
t.Errorf("expected the file for binary exist at %q but got error %v", fp, err)