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.
Showing
想要评论请 注册 或 登录