From 62324781bdcfb9bb4f436f654457b65fae795fca Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 5 Apr 2017 23:57:33 +0900 Subject: [PATCH] integration: Close channel instead of writing struct --- integration-tests/server_tester.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/server_tester.go b/integration-tests/server_tester.go index 03271add..c6069b8e 100644 --- a/integration-tests/server_tester.go +++ b/integration-tests/server_tester.go @@ -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)