提交 1a4b5a05 编写于 作者: A aarzilli

terminal/command_test: improved TestIssue387

The test in question tries to 'next' over a call to wg.Done, this is
not guaranteed to succeed, if the goroutine gets suspended after
wg.Done has notified the waiting group but before returning to
main.dostuff the program could quit before the goroutine is resumed.
上级 f2581e60
......@@ -458,7 +458,7 @@ func TestIssue387(t *testing.T) {
t.Fatalf("did not continue to expected position %d", pos)
}
pos++
if pos > 11 {
if pos >= 11 {
break
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册