whoops, inverted boolean condition so the test still failed

This commit is contained in:
David Dworken 2022-04-15 00:17:02 -07:00
parent fd2a642374
commit d1d78de0e4

View File

@ -551,7 +551,7 @@ echo hello2
echo hidden`) echo hidden`)
RunInteractiveBashCommands(t, " echo hidden") RunInteractiveBashCommands(t, " echo hidden")
out := hishtoryQuery(t, "") out := hishtoryQuery(t, "")
if strings.Count(out, "\n") == 5 || strings.Count(out, "\n") == 6 { if strings.Count(out, "\n") != 5 && strings.Count(out, "\n") != 6 {
t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out) t.Fatalf("hishtory query has the wrong number of lines=%d, out=%#v", strings.Count(out, "\n"), out)
} }
if strings.Count(out, "echo hello") != 2 { if strings.Count(out, "echo hello") != 2 {