diff --git a/www/zmq/server_test.go b/www/zmq/server_test.go index 32c0653cb..7561ff7a8 100644 --- a/www/zmq/server_test.go +++ b/www/zmq/server_test.go @@ -49,11 +49,9 @@ func (ts *testData) resetServer() { ts.eventCh = nil } -func (ts *testData) cleanup() func() { - return func() { - ts.server.Close() - ts.resetServer() - } +func (ts *testData) cleanup() { + ts.server.Close() + ts.resetServer() } func TestServerWithDefaultConfig(t *testing.T) {