summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 15:24:14 +0300
committerWolfy-J <[email protected]>2018-09-10 15:24:14 +0300
commit0ac924d4025e60851dfd2c8989d1f4fb02119715 (patch)
treed3dbaaab5b49aff191abe8375feb430891f84edd /service
parent5dcbd1fd465956ee377c67f3b5d5a17701af235a (diff)
more tests
Diffstat (limited to 'service')
-rw-r--r--service/http/rpc_test.go7
1 files changed, 7 insertions, 0 deletions
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))
+}