Skip to content

Commit

Permalink
Fix golangci-lint errors in test file due to Errorf() without format …
Browse files Browse the repository at this point in the history
…string

Signed-off-by: Matt Rutkowski <[email protected]>
  • Loading branch information
mrutkows committed Nov 7, 2024
1 parent e40b591 commit 5d7139e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/license_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ func TestLicensePolicyUsageConjunctionsANDCombinations(t *testing.T) {
// Set the policy file to the reduced, 3-entry policy file used to test the 3 policy states
testPolicyConfig, err := LoadCustomPolicyFile(POLICY_FILE_GOOD_BAD_MAYBE)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}

// 1. schema.POLICY_DENY AND schema.POLICY_ALLOW
EXP := "Bad AND Good"
EXPECTED_USAGE_POLICY := schema.POLICY_DENY
parsedExpression, err := schema.ParseExpression(testPolicyConfig, EXP)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
resolvedPolicy := parsedExpression.CompoundUsagePolicy
if resolvedPolicy != EXPECTED_USAGE_POLICY {
Expand All @@ -165,7 +165,7 @@ func TestLicensePolicyUsageConjunctionsANDCombinations(t *testing.T) {
EXPECTED_USAGE_POLICY = schema.POLICY_DENY
parsedExpression, err = schema.ParseExpression(testPolicyConfig, EXP)
if err != nil {
t.Errorf(err.Error())
t.Error(err.Error())
}
resolvedPolicy = parsedExpression.CompoundUsagePolicy
if resolvedPolicy != EXPECTED_USAGE_POLICY {
Expand Down

0 comments on commit 5d7139e

Please sign in to comment.