Skip binary check if preload exists.

pull/11461/head
Andriy Dzikh 2021-05-26 15:34:13 -07:00
parent 89a6820936
commit a89d404903
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ func TestDownloadOnly(t *testing.T) {
})
t.Run("binaries", func(t *testing.T) {
if preloadExists {
t.Skip("Preload exists, binaries are present within.")
}
// checking binaries downloaded (kubelet,kubeadm)
for _, bin := range constants.KubernetesReleaseBinaries {
fp := filepath.Join(localpath.MiniPath(), "cache", "linux", v, bin)