summaryrefslogtreecommitdiff
path: root/service/gzip/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/gzip/config_test.go')
-rw-r--r--service/gzip/config_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/gzip/config_test.go b/service/gzip/config_test.go
index c2168166..8d03aecf 100644
--- a/service/gzip/config_test.go
+++ b/service/gzip/config_test.go
@@ -1,15 +1,16 @@
package gzip
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)