Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SOF3 committed Aug 16, 2023
1 parent bfe79fe commit 7e6b56d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pkg/k8s/objectcache/objectcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ func TestGet(t *testing.T) {
assert.NoError(cache.Init())

for i := 0; i < 2; i++ {
uns, err := cache.Get(context.Background(), utilobject.Rich{
Cluster: "test-cluster",
GroupVersionResource: corev1.SchemeGroupVersion.WithResource("configmaps"),
Namespace: "default",
Name: "test-cm",
uns, err := cache.Get(context.Background(), utilobject.VersionedKey{
Key: utilobject.Key{
Cluster: "test-cluster",
Namespace: "default",
Name: "test-cm",
Group: corev1.GroupName,
Resource: "configmaps",
},
Version: corev1.SchemeGroupVersion.Version,
})
assert.NoError(err)

Expand Down

0 comments on commit 7e6b56d

Please sign in to comment.