diff options
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/config_test.go | 5 | ||||
-rw-r--r-- | service/env/service_test.go | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/service/env/config_test.go b/service/env/config_test.go index a526990d..cc2bdf97 100644 --- a/service/env/config_test.go +++ b/service/env/config_test.go @@ -1,15 +1,16 @@ package env import ( + "testing" + json "github.com/json-iterator/go" "github.com/spiral/roadrunner/service" "github.com/stretchr/testify/assert" - "testing" ) type mockCfg struct{ cfg string } -func (cfg *mockCfg) Get(name string) service.Config { return nil } +func (cfg *mockCfg) Get(name string) service.Config { return nil } func (cfg *mockCfg) Unmarshal(out interface{}) error { j := json.ConfigCompatibleWithStandardLibrary return j.Unmarshal([]byte(cfg.cfg), out) diff --git a/service/env/service_test.go b/service/env/service_test.go index 19cc03c7..a354214c 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -1,8 +1,9 @@ package env import ( - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func Test_NewService(t *testing.T) { |