diff --git a/pkg/controllers/namespacesync/controller_test.go b/pkg/controllers/namespacesync/controller_test.go index 8f6d13e12..d9db1a5cb 100644 --- a/pkg/controllers/namespacesync/controller_test.go +++ b/pkg/controllers/namespacesync/controller_test.go @@ -21,7 +21,9 @@ func TestReconcileNewNamespaces(t *testing.T) { g := NewWithT(t) timeout := 5 * time.Second - sourceClusterClassName, cleanup, err := createUniqueClusterClassAndTemplates(sourceClusterClassNamespace) + sourceClusterClassName, cleanup, err := createUniqueClusterClassAndTemplates( + sourceClusterClassNamespace, + ) g.Expect(err).ToNot(HaveOccurred()) defer func() { g.Expect(cleanup()).To(Succeed()) @@ -50,7 +52,9 @@ func TestReconcileNewClusterClass(t *testing.T) { targetNamespaces, err := createTargetNamespaces(3) g.Expect(err).ToNot(HaveOccurred()) - sourceClusterClassName, cleanup, err := createUniqueClusterClassAndTemplates(sourceClusterClassNamespace) + sourceClusterClassName, cleanup, err := createUniqueClusterClassAndTemplates( + sourceClusterClassNamespace, + ) g.Expect(err).ToNot(HaveOccurred()) defer func() { g.Expect(cleanup()).To(Succeed()) @@ -95,7 +99,10 @@ func createUniqueClusterClassAndTemplates(namespace string) ( cleanup func() error, err error, ) { - return createClusterClassAndTemplates(names.SimpleNameGenerator.GenerateName("test-"), namespace) + return createClusterClassAndTemplates( + names.SimpleNameGenerator.GenerateName("test-"), + namespace, + ) } func createClusterClassAndTemplates( diff --git a/pkg/controllers/namespacesync/copy_test.go b/pkg/controllers/namespacesync/copy_test.go index dabe93ad0..19d2b1640 100644 --- a/pkg/controllers/namespacesync/copy_test.go +++ b/pkg/controllers/namespacesync/copy_test.go @@ -16,7 +16,10 @@ func TestDoNotUpdateIfTargetExists(t *testing.T) { timeout := 50 * time.Second prefix := names.SimpleNameGenerator.GenerateName("test-") - sourceClusterClassName, cleanup, err := createClusterClassAndTemplates(prefix, sourceClusterClassNamespace) + sourceClusterClassName, cleanup, err := createClusterClassAndTemplates( + prefix, + sourceClusterClassNamespace, + ) g.Expect(err).ToNot(HaveOccurred()) targetNamespaces, err := createTargetNamespaces(3) @@ -38,7 +41,10 @@ func TestDoNotUpdateIfTargetExists(t *testing.T) { g.Expect(cleanup()).To(Succeed()) // Create source class again - sourceClusterClassName, cleanup, err = createClusterClassAndTemplates(prefix, sourceClusterClassNamespace) + sourceClusterClassName, cleanup, err = createClusterClassAndTemplates( + prefix, + sourceClusterClassNamespace, + ) g.Expect(err).ToNot(HaveOccurred()) defer func() { g.Expect(cleanup()).To(Succeed())