Skip to content

Commit

Permalink
fix cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanHoladay committed Oct 11, 2024
1 parent 4b3c860 commit 0caac89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/resources/cache_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2024-Present The UDS Authors

//go:build unit

package resources

import (
Expand Down Expand Up @@ -67,6 +65,7 @@ func TestBindCoreResources(t *testing.T) {
factory: informers.NewSharedInformerFactory(clientset, time.Minute*10),
dynamicFactory: dynamicinformer.NewDynamicSharedInformerFactory(dynamicClient, time.Minute*10),
stopper: make(chan struct{}),
UDSCRDs: NewCRDs(),
}

// Bind resources
Expand All @@ -89,6 +88,7 @@ func TestBindCoreResources(t *testing.T) {
<-ctx.Done()
defer close(c.stopper)

// log.Println("got here")
require.Equal(t, c.Nodes.GetResources("", mockNodeName)[0].GetName(), mockNode.Name)
require.Equal(t, c.CRDs.GetResources("", "test-crd")[0].GetName(), mockCRD.GetName())
}
Expand Down

0 comments on commit 0caac89

Please sign in to comment.