Skip to content

Commit

Permalink
test: Remove test reference to DEFRA_ROOTDIR env var (sourcenetwork#1328
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AndrewSisley authored Apr 11, 2023
1 parent d58c196 commit 984f6a6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,6 @@ func TestCreateAndLoadCustomConfig(t *testing.T) {
assert.Equal(t, cfg.Log.Level, cfg2.Log.Level)
}

func TestLoadValidationEnvDoesntSupportRootdir(t *testing.T) {
tmpdir := t.TempDir()
FixtureEnvKeyValue(t, "DEFRA_ROOTDIR", tmpdir)
cfg := DefaultConfig()
err := cfg.LoadWithRootdir(false)
assert.Equal(t, cfg.Rootdir, DefaultRootDir())
assert.NoError(t, err)
}

func TestLoadValidationEnvLoggingConfig(t *testing.T) {
FixtureEnvKeyValue(t, "DEFRA_LOG_LEVEL", "debug,net=info,log=error,cli=fatal")
cfg := DefaultConfig()
Expand Down

0 comments on commit 984f6a6

Please sign in to comment.