Skip to content

Commit

Permalink
use actual scheme to enforce error being the object and not the scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Troy Connor <troy0820@users.noreply.github.com>
  • Loading branch information
troy0820 committed Aug 30, 2023
1 parent 08a95b1 commit 16fc13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/controllerutil/controllerutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ var _ = Describe("Controllerutil", func() {
}
Expect(controllerutil.SetControllerReference(dep, rs, scheme.Scheme)).NotTo(HaveOccurred())
Expect(len(rs.GetOwnerReferences())).To(BeEquivalentTo(1))
Expect(controllerutil.RemoveControllerReference(obj, rs, runtime.NewScheme())).To(HaveOccurred())
Expect(controllerutil.RemoveControllerReference(obj, rs, scheme.Scheme)).To(HaveOccurred())
Expect(len(rs.GetOwnerReferences())).To(BeEquivalentTo(1))
})
})
Expand Down

0 comments on commit 16fc13c

Please sign in to comment.