diff options
author | Wolfy-J <[email protected]> | 2018-09-10 16:42:15 +0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-09-10 16:42:15 +0400 |
commit | a554a98dda0d793da09db17314ef3977a2f3a465 (patch) | |
tree | 64b506898d283c39babc48da5a29df203cb57b49 /service/http/service_test.go | |
parent | ea97c188a4a74c00b585cb50fa1ed4db7d190e09 (diff) | |
parent | 46a06a4d104802fb4271e06da487f74f23edd10c (diff) |
Merge pull request #33 from spiral/feature/env-setterv1.2.0
Feature/env setter
Diffstat (limited to 'service/http/service_test.go')
-rw-r--r-- | service/http/service_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/http/service_test.go b/service/http/service_test.go index 4e572335..8dab7cd4 100644 --- a/service/http/service_test.go +++ b/service/http/service_test.go @@ -6,6 +6,7 @@ import ( "github.com/sirupsen/logrus/hooks/test" "github.com/spiral/roadrunner" "github.com/spiral/roadrunner/service" + "github.com/spiral/roadrunner/service/env" "github.com/spiral/roadrunner/service/rpc" "github.com/stretchr/testify/assert" "io/ioutil" @@ -13,7 +14,6 @@ import ( "os" "testing" "time" - "github.com/spiral/roadrunner/service/env" ) type testCfg struct { @@ -49,7 +49,7 @@ func Test_Service_NoConfig(t *testing.T) { c := service.NewContainer(logger) c.Register(ID, &Service{}) - assert.Error(t, c.Init(&testCfg{httpCfg: `{}`})) + assert.Error(t, c.Init(&testCfg{httpCfg: `{"Enable":true}`})) s, st := c.Get(ID) assert.NotNil(t, s) |