diff --git a/cluster/kubernetes/cached_disco_test.go b/cluster/kubernetes/cached_disco_test.go index 82c5dfc6c4..d7bf0a74a1 100644 --- a/cluster/kubernetes/cached_disco_test.go +++ b/cluster/kubernetes/cached_disco_test.go @@ -65,7 +65,7 @@ func TestCachedDiscovery(t *testing.T) { }, } makeHandler := func(d discovery.CachedDiscoveryInterface) toolscache.ResourceEventHandler { - return chainHandler{first: addHandler, next: makeInvalidatingHandler(d)} + return chainHandler{first: makeInvalidatingHandler(d), next: addHandler} } cachedDisco, store, _ := makeCachedDiscovery(coreClient.Discovery(), crdClient, shutdown, makeHandler)