From 69bd0d9816904b5458e9b51fda84ae40a0cc37d1 Mon Sep 17 00:00:00 2001 From: StephanHCB Date: Mon, 19 Aug 2024 15:54:43 +0200 Subject: [PATCH] fix(#1): change a test to trigger run --- test/customconfigexample/example_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/customconfigexample/example_test.go b/test/customconfigexample/example_test.go index 646a474..3c7641e 100644 --- a/test/customconfigexample/example_test.go +++ b/test/customconfigexample/example_test.go @@ -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())