Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny0826 committed Jan 15, 2024
1 parent 1f0f213 commit 051db28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ func mockKubernetesClientSet(namespaces []string) kubernetes.Interface {
Name: ns,
},
}
clientset.CoreV1().Namespaces().Create(context.TODO(), namespace, metav1.CreateOptions{})
_, err := clientset.CoreV1().Namespaces().Create(context.TODO(), namespace, metav1.CreateOptions{})
if err != nil {
return nil
}
}

return clientset
Expand Down

0 comments on commit 051db28

Please sign in to comment.