Skip to content

Commit

Permalink
Update IGNORE test
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJoiner committed Jun 27, 2024
1 parent dcb9667 commit ed18320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config_loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ IGNORE: ignoreme
assert.Equal(t, "dev", settings.Env)
assert.Equal(t, "redis.bobby", settings.Redis.URL)
assert.Equal(t, "inline.bobby", settings.Inline.URL)
assert.Equal(t, "", settings.Ignore)
assert.Equal(t, "", settings.IGNORE)
}

func Test_loadFromEnvVars(t *testing.T) {
Expand All @@ -49,7 +49,7 @@ func Test_loadFromEnvVars(t *testing.T) {
assert.Equal(t, "mydb.aws.net", settings.DbConnectString)
assert.Equal(t, "redis.bobby", settings.Redis.URL)
assert.Equal(t, "inline.bobby", settings.Inline.URL)
assert.Equal(t, "", settings.Ignore)
assert.Equal(t, "", settings.IGNORE)
}

func Test_loadFromEnvVars_errIfNotPointer(t *testing.T) {
Expand Down Expand Up @@ -78,7 +78,7 @@ type TestSettings struct {
Env string `yaml:"ENV"`
Redis RedisSubProp `yaml:"REDIS"`
Inline InlineSubProp `yaml:",inline"`
Ignore string `yaml:"-"`
IGNORE string `yaml:"-"`
}

type RedisSubProp struct {
Expand Down

0 comments on commit ed18320

Please sign in to comment.