Skip to content

Commit

Permalink
fix: uts (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal authored Aug 28, 2024
1 parent 51f4b0b commit d7ed6fd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
)

func Test_Defaults(t *testing.T) {
t.Parallel()

tcs := []struct {
path string
expectedValue interface{}
Expand Down Expand Up @@ -51,17 +49,13 @@ func Test_Defaults(t *testing.T) {
for _, tc := range tcs {
tc := tc
t.Run(tc.path, func(t *testing.T) {
t.Parallel()

actual := getValueFromStruct(tc.path, cfg)
require.Equal(t, tc.expectedValue, actual)
})
}
}

func Test_ConfigFileNotFound(t *testing.T) {
t.Parallel()

flags := flag.FlagSet{}
flags.String("cfg", "/fictitious-file/foo.cfg", "")

Expand All @@ -71,8 +65,6 @@ func Test_ConfigFileNotFound(t *testing.T) {
}

func Test_ConfigFileOverride(t *testing.T) {
t.Parallel()

tempDir := t.TempDir()
overrides := filepath.Join(tempDir, "overrides.toml")
f, err := os.Create(overrides)
Expand Down

0 comments on commit d7ed6fd

Please sign in to comment.