From 0ac924d4025e60851dfd2c8989d1f4fb02119715 Mon Sep 17 00:00:00 2001 From: Wolfy-J Date: Mon, 10 Sep 2018 15:24:14 +0300 Subject: more tests --- service/http/rpc_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/service/http/rpc_test.go b/service/http/rpc_test.go index c392b060..32bb776c 100644 --- a/service/http/rpc_test.go +++ b/service/http/rpc_test.go @@ -177,3 +177,10 @@ func Test_Workers(t *testing.T) { assert.Equal(t, *ss.rr.Workers()[0].Pid, r.Workers[0].Pid) } + +func Test_Errors(t *testing.T) { + r := &rpcServer{nil} + + assert.Error(t, r.Reset(true, nil)) + assert.Error(t, r.Workers(true, nil)) +} -- cgit v1.2.3