diff --git a/deploy/minikube/release_sanity_test.go b/deploy/minikube/release_sanity_test.go index 09971ca446..4dd248dae0 100644 --- a/deploy/minikube/release_sanity_test.go +++ b/deploy/minikube/release_sanity_test.go @@ -68,9 +68,14 @@ func TestBetaReleasesJSON(t *testing.T) { } func checkReleases(t *testing.T, rs notify.Releases) { - for _, r := range rs { + for _, r := range rs.Releases { fmt.Printf("Checking release: %s\n", r.Name) - for platform, sha := range r.Checksums { + checksums := map[string]string{ + "darwin": r.Checksums.Darwin, + "linux": r.Checksums.Linux, + "windows": r.Checksums.Windows, + } + for platform, sha := range checksums { fmt.Printf("Checking SHA for %s.\n", platform) actualSha, err := getSHAFromURL(util.GetBinaryDownloadURL(r.Name, platform, runtime.GOARCH)) if err != nil { diff --git a/pkg/minikube/notify/notify_test.go b/pkg/minikube/notify/notify_test.go index da078706d3..b1166a5266 100644 --- a/pkg/minikube/notify/notify_test.go +++ b/pkg/minikube/notify/notify_test.go @@ -95,7 +95,7 @@ func TestShouldCheckURLBetaVersion(t *testing.T) { } type URLHandlerCorrect struct { - releases Releases + releases []Release } func (h *URLHandlerCorrect) ServeHTTP(w http.ResponseWriter, r *http.Request) {