Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

remove testing for viper

Chris Luabf90ad7b794
diff --git a/weed/util/config_test.go b/weed/util/config_test.go
deleted file mode 100644
index b14ec2fa9c..0000000000
--- a/weed/util/config_test.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package util
-
-import (
- "os"
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestAllKeysWithEnv(t *testing.T) {
-
- v := GetViper()
- v.BindEnv("id")
- v.BindEnv("foo", "foo")
-
- // bind and define environment variables (including a nested one)
- os.Setenv("WEED_ID", "13")
- os.Setenv("WEED_FOO_BAR", "baz")
-
- sub := v.Sub("foo")
-
- assert.Equal(t, "13", v.GetString("id"))
- assert.Equal(t, nil, sub)
-}