Skip to content

Commit

Permalink
e2e: Fix leftover check (#1824)
Browse files Browse the repository at this point in the history
Wrong type was checked twice.

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval authored Jul 4, 2024
1 parent f9482b6 commit cecf7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func CheckForLeftoverObjects(currentVersion string) {
Expect(err).NotTo(HaveOccurred())
Expect(clusterRoles.Items).To(BeEmpty(), "Found leftover objects from the previous operator version")

clusterRoleBindings := rbacv1.ClusterRoleList{}
clusterRoleBindings := rbacv1.ClusterRoleBindingList{}
err = testenv.Client.List(context.Background(), &clusterRoleBindings, &listOptions)
Expect(err).NotTo(HaveOccurred())
Expect(clusterRoleBindings.Items).To(BeEmpty(), "Found leftover objects from the previous operator version")
Expand Down

0 comments on commit cecf7d9

Please sign in to comment.