Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit be903da

Browse files
rykal-natetnixa
authored andcommitted
Allow both variants of the command not found error message. (#65)
1 parent 6cd589d commit be903da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func TestTAAFail(t *testing.T) {
389389
log.Printf("error is: %v\n", err)
390390
// the count should only be one, it will not match on the .go file or the .bad file touched by the util
391391
// sleep 2 is for watch action, sleep 10 is for RUN action
392-
if strings.Count(output, "bad: command not found") == 1 {
392+
if strings.Count(output, "bad: command not found") == 1 || strings.Count(output, "bad: not found") == 1 {
393393
log.Println("pass")
394394
} else {
395395
t.Fail()

0 commit comments

Comments
 (0)