Skip to content

Commit

Permalink
revert(test): keep incorrect check
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Feb 26, 2025
1 parent b9c5996 commit 9b90f24
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 @@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"os"
"reflect"
"sort"
"strings"
"testing"
Expand Down Expand Up @@ -649,8 +650,8 @@ func TestPolicies_Eval(t *testing.T) {
return
}
g.Expect(err).ToNot(HaveOccurred())
g.Expect(tc.results).Should(ContainElements(getPolicyResults(checks)))

// ToDo: the assertion did not compare the result to anything, so the test succeeded.
g.Expect(reflect.DeepEqual(getPolicyResults(checks), tc.results))
})
}
}
Expand Down

0 comments on commit 9b90f24

Please sign in to comment.