Skip to content

Commit

Permalink
fix description string
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Pana <8968914+acpana@users.noreply.github.com>
  • Loading branch information
acpana committed Feb 28, 2023
1 parent 1c67b47 commit 810ab08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion constraint/pkg/client/drivers/local/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const (
violation = "violation"

templateRunTimeNanosName = "templateRunTimeNanos"
templateRunTimeMillisDescription = "the number of milliseconds it took to evaluate all constraints for a template"
templateRunTimeMillisDescription = "the number of nanoseconds it took to evaluate all constraints for a template"

constraintCountName = "constraintCount"
constraintCountDescription = "the number of constraints that were evaluated at the same time for the given constraint kind"
Expand Down
2 changes: 1 addition & 1 deletion constraint/pkg/client/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ func TestE2E_Review_StatsEntries(t *testing.T) {

switch stat.Name {
case "templateRunTimeNanos":
want := "the number of milliseconds it took to evaluate all constraints for a template"
want := "the number of nanoseconds it took to evaluate all constraints for a template"
if desc != want {
t.Errorf("want: %s, got: %s", want, desc)
}
Expand Down

0 comments on commit 810ab08

Please sign in to comment.