summaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 13:10:59 +0300
committerWolfy-J <[email protected]>2018-06-13 13:10:59 +0300
commit436d4bc263137640b4f0a58e27a82619bca10e85 (patch)
tree6e3ec0d00c804389f916fae3995c37d29442862d /server_test.go
parentd2c7ee8c0a070b9790d5552d3f607ca01e1ab798 (diff)
minor improvements
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server_test.go b/server_test.go
index 0ae06713..13cacc2c 100644
--- a/server_test.go
+++ b/server_test.go
@@ -211,7 +211,7 @@ func TestServer_ServerFailure(t *testing.T) {
failure := make(chan interface{})
srv.Listen(func(e int, ctx interface{}) {
if e == EventServerFailure {
- close(failure)
+ failure <- nil
}
})