diff --git a/pkg/cwhub/hub_test.go b/pkg/cwhub/hub_test.go
index acaa0ec31..779bc2542 100644
--- a/pkg/cwhub/hub_test.go
+++ b/pkg/cwhub/hub_test.go
@@ -58,6 +58,7 @@ func TestDownloadIndex(t *testing.T) {
 	}
 
 	err = hub.remote.DownloadIndex(tmpIndex.Name())
+	require.NoError(t, err)
 	// XXX: this is not failing
 	//	cstest.RequireErrorContains(t, err, "failed http request for hub index: Get")