diff options
Diffstat (limited to 'service/env/service_test.go')
-rw-r--r-- | service/env/service_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/service/env/service_test.go b/service/env/service_test.go index 28e0d15b..61fecd28 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -17,11 +17,11 @@ func Test_Init(t *testing.T) { values, err := s.GetEnv() assert.NoError(t, err) - assert.Equal(t, "yes", values["rr"]) + assert.Equal(t, "true", values["RR"]) } func Test_Extend(t *testing.T) { - s := NewService(map[string]string{"rr": "version"}) + s := NewService(map[string]string{"RR": "version"}) s.Init(&Config{Values: map[string]string{"key": "value"}}) assert.Len(t, s.values, 2) @@ -29,12 +29,12 @@ func Test_Extend(t *testing.T) { values, err := s.GetEnv() assert.NoError(t, err) assert.Len(t, values, 2) - assert.Equal(t, "version", values["rr"]) + assert.Equal(t, "version", values["RR"]) assert.Equal(t, "value", values["key"]) } func Test_Set(t *testing.T) { - s := NewService(map[string]string{"rr": "version"}) + s := NewService(map[string]string{"RR": "version"}) s.Init(&Config{Values: map[string]string{"key": "value"}}) assert.Len(t, s.values, 2) @@ -45,7 +45,7 @@ func Test_Set(t *testing.T) { values, err := s.GetEnv() assert.NoError(t, err) assert.Len(t, values, 3) - assert.Equal(t, "version", values["rr"]) + assert.Equal(t, "version", values["RR"]) assert.Equal(t, "value-new", values["key"]) assert.Equal(t, "new", values["other"]) } |