Skip to content

Commit

Permalink
gate assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
simar7 committed Feb 26, 2025
1 parent b9c5996 commit 2fca81f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/policy/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,9 @@ func TestPolicies_Eval(t *testing.T) {
return
}
g.Expect(err).ToNot(HaveOccurred())
g.Expect(tc.results).Should(ContainElements(getPolicyResults(checks)))

if len(tc.results) > 0 {
g.Expect(tc.results).Should(ContainElements(getPolicyResults(checks)))
}
})
}
}
Expand Down

0 comments on commit 2fca81f

Please sign in to comment.