Skip to content

Commit

Permalink
Merge pull request #3 from Interhyp/issue-1-onboarding
Browse files Browse the repository at this point in the history
fix(#1): change a test to trigger run
  • Loading branch information
StephanHCB authored Aug 19, 2024
2 parents fe8d3e2 + 69bd0d9 commit f1ec80b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/customconfigexample/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const basedir = "../resources/"
func TestRead_EnvWins(t *testing.T) {
docs.Description("when reading config, environment supersedes yaml values")

os.Setenv("APPLICATION_NAME", "room-service")
_ = os.Setenv("APPLICATION_NAME", "room-service")
cut := New().(repository.Configuration)
auconfigenv.LocalConfigFileName = basedir + "valid-config.yaml"
err := cut.Read()
cut.(*config.ConfigImpl).ObtainPredefinedValues()

os.Unsetenv("APPLICATION_NAME")
_ = os.Unsetenv("APPLICATION_NAME")

require.Nil(t, err)
require.Equal(t, "room-service", cut.ApplicationName())
Expand Down

0 comments on commit f1ec80b

Please sign in to comment.