diff options
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/environment.go | 2 | ||||
-rw-r--r-- | service/env/service_test.go | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/service/env/environment.go b/service/env/environment.go index d095009c..8e89d2c8 100644 --- a/service/env/environment.go +++ b/service/env/environment.go @@ -8,4 +8,4 @@ type Environment interface { // SetEnv sets or creates environment value. SetEnv(key, value string) -}
\ No newline at end of file +} diff --git a/service/env/service_test.go b/service/env/service_test.go index 10159857..5b148207 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -23,15 +23,14 @@ func Test_Extend(t *testing.T) { assert.Equal(t, "value", values["key"]) } - func Test_Set(t *testing.T) { s := NewService(map[string]string{"rr": "version"}) s.Init(&Config{Values: map[string]string{"key": "value"}}) assert.Len(t, s.values, 2) - s.SetEnv("key","value-new") - s.SetEnv("other","new") + s.SetEnv("key", "value-new") + s.SetEnv("other", "new") values, err := s.GetEnv() assert.NoError(t, err) @@ -39,4 +38,4 @@ func Test_Set(t *testing.T) { assert.Equal(t, "version", values["rr"]) assert.Equal(t, "value-new", values["key"]) assert.Equal(t, "new", values["other"]) -}
\ No newline at end of file +} |