From 0caac89debd41226a32230e5e93e46251d575fc2 Mon Sep 17 00:00:00 2001 From: TristanHoladay <40547442+TristanHoladay@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:04:32 -0600 Subject: [PATCH] fix cache test --- pkg/api/resources/cache_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/api/resources/cache_test.go b/pkg/api/resources/cache_test.go index bc5639d20..62a853660 100644 --- a/pkg/api/resources/cache_test.go +++ b/pkg/api/resources/cache_test.go @@ -1,8 +1,6 @@ // SPDX-License-Identifier: Apache-2.0 // SPDX-FileCopyrightText: 2024-Present The UDS Authors -//go:build unit - package resources import ( @@ -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 @@ -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()) }