Skip to content

Commit

Permalink
add assert to check if stop chan is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
johejo committed Apr 4, 2020
1 parent 44ed2ff commit 7c2ea54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http_test.go
Expand Up @@ -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
}

0 comments on commit 7c2ea54

Please sign in to comment.