integration: Close channel instead of writing struct

This commit is contained in:
Tatsuhiro Tsujikawa 2017-04-05 23:57:33 +09:00
parent 058122b804
commit 62324781bd
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ func (st *serverTester) Close() {
done := make(chan struct{})
go func() {
st.cmd.Wait()
done <- struct{}{}
close(done)
}()
st.cmd.Process.Signal(syscall.SIGQUIT)