Skip to content

Commit

Permalink
update: service_test with new msg format
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor-yanev committed Sep 12, 2024
1 parent 1883aff commit c3c9e61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ruletypes/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"database/sql"
"errors"
"fmt"
"testing"

"github.com/google/uuid"
Expand Down Expand Up @@ -447,7 +448,7 @@ func newDBRuleType(severity db.Severity, subscriptionID uuid.UUID, failureMessag
name = namespacedRuleName
}
if failureMessage == "" {
failureMessage = "Rule evaluation failed"
failureMessage = fmt.Sprintf("Rule %s evaluation failed", name)
}
return db.RuleType{
ID: ruleTypeID,
Expand Down

0 comments on commit c3c9e61

Please sign in to comment.