Skip to content

Commit

Permalink
Swapped stdout check ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Dec 2, 2024
1 parent 34af488 commit 4e0a3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func RunCommonCMDTests(test *testing.T, mainFunc func(), args []string, commonTe
return "", "", -1, false
}

if commonTestCase.ExpectedStdout != stdout && !commonTestCase.IgnoreStdout {
if !commonTestCase.IgnoreStdout && commonTestCase.ExpectedStdout != stdout {
test.Errorf("%sUnexpected output. Expected: \n'%s', \n Actual: \n'%s'.", prefix, commonTestCase.ExpectedStdout, stdout)
return "", "", -1, false
}
Expand Down

0 comments on commit 4e0a3e1

Please sign in to comment.