Skip to content

Commit

Permalink
test: output string can be out of order in TestCmdKill
Browse files Browse the repository at this point in the history
  • Loading branch information
Bai-Yingjie committed Apr 10, 2024
1 parent 1ec4918 commit 9174695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gshell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ func TestCmdKill(t *testing.T) {
t.Fatal(err)
}

if strings.TrimSpace(out) != "testkill24-"+version+" testkill25-"+version+" killed" {
if strings.TrimSpace(out) != "testkill24-"+version+" testkill25-"+version+" killed" &&
strings.TrimSpace(out) != "testkill25-"+version+" testkill24-"+version+" killed" {
t.Fatal("unexpected output")
}

Expand Down

0 comments on commit 9174695

Please sign in to comment.