From 7c2ea540c90d0349fa18ebcc5251c97529428acf Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo Date: Sat, 4 Apr 2020 23:48:55 +0900 Subject: [PATCH] add assert to check if stop chan is empty --- http_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/http_test.go b/http_test.go index 6bf8de1c24..934ed0cc3b 100644 --- a/http_test.go +++ b/http_test.go @@ -171,4 +171,6 @@ func TestGracefulShutdown(t *testing.T) { stop <- struct{}{} // emulate catching signals wg.Wait() + + assert.Len(t, stop, 0) // check if stop chan is empty }