summaryrefslogtreecommitdiff
path: root/service/http/rpc_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-09-10 16:42:15 +0400
committerGitHub <[email protected]>2018-09-10 16:42:15 +0400
commita554a98dda0d793da09db17314ef3977a2f3a465 (patch)
tree64b506898d283c39babc48da5a29df203cb57b49 /service/http/rpc_test.go
parentea97c188a4a74c00b585cb50fa1ed4db7d190e09 (diff)
parent46a06a4d104802fb4271e06da487f74f23edd10c (diff)
Merge pull request #33 from spiral/feature/env-setterv1.2.0
Feature/env setter
Diffstat (limited to 'service/http/rpc_test.go')
-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))
+}