Skip to content

Commit 76d051e

Browse files
committed
change test
1 parent b36953a commit 76d051e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

config/helpers_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ func TestConfigHelpers(t *testing.T) {
7070
t.Run("should panic if env value not set", func(t *testing.T) {
7171
defer unsetEnv(t, "CACHE_HASH_QUERY_IGNORE")()
7272

73-
assert.Panics(t, func() {
74-
getEnvAsSlice("CACHE_HASH_QUERY_IGNORE")
75-
})
73+
got := getEnvAsSlice("CACHE_HASH_QUERY_IGNORE")
74+
assert.Equal(t, []string{}, got)
7675
})
7776
})
7877
t.Run("getEnvAsInt", func(t *testing.T) {

0 commit comments

Comments
 (0)