From 1d7edb9fa290970a814a29885f4d76b179de38b6 Mon Sep 17 00:00:00 2001 From: Megan Wolf Date: Tue, 30 Apr 2024 09:05:01 -0400 Subject: [PATCH] updated result condition to match satisfaction logic --- src/cmd/dev/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dev/validate.go b/src/cmd/dev/validate.go index e3cc413e..98395881 100644 --- a/src/cmd/dev/validate.go +++ b/src/cmd/dev/validate.go @@ -126,7 +126,7 @@ func init() { } } - result := validation.Result.Failing == 0 + result := validation.Result.Passing > 0 && validation.Result.Failing <= 0 // If the expected result is not equal to the actual result, return an error if validateOpts.ExpectedResult != result { message.Fatalf(fmt.Errorf("validation failed"), "expected result to be %t got %t", validateOpts.ExpectedResult, result)