diff --git a/cmd/logql-compliance-tester/output.go b/cmd/logql-compliance-tester/output.go index 5a0c3595..29bd366c 100644 --- a/cmd/logql-compliance-tester/output.go +++ b/cmd/logql-compliance-tester/output.go @@ -102,7 +102,8 @@ func verifyTargetCompliance(results []*lokicompliance.Result, target float64) er } fmt.Printf("Target: %.2f%%\n", target) - if successPercentage < target { + // Compare with precision up to .01. + if int(successPercentage*100) < int(target*100) { fmt.Println(color.RedString("FAILED")) return errors.Errorf("target is %v, passed is %.2f", target, successPercentage) }