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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
adjust test
Chris Lu46a09c60744e
diff --git a/weed/util/skiplist/skiplist_test.go b/weed/util/skiplist/skiplist_test.goindex 7ce7b48435..5b36cacbdc 100644--- a/weed/util/skiplist/skiplist_test.go+++ b/weed/util/skiplist/skiplist_test.go@@ -2,7 +2,6 @@ package skiplistimport ("bytes"- "fmt""math/rand""strconv""testing"@@ -243,9 +242,8 @@ func TestFindGreaterOrEqual(t *testing.T) {key := Element(rand.Intn(maxNumber))if _, v, ok, _ := list.FindGreaterOrEqual(key); ok {// if f is v should be bigger than the element before- if v.Prev != nil && bytes.Compare(v.Prev.Key, key) >= 0 {- fmt.Printf("PrevV: %s\n key: %s\n\n", string(v.Prev.Key), string(key))- t.Fail()+ if v.Prev != nil && bytes.Compare(key, v.Prev.Key) < 0 {+ t.Errorf("PrevV: %s\n key: %s\n\n", string(v.Prev.Key), string(key))}// v should be bigger or equal to f// If we compare directly, we get an equal key with a difference on the 10th decimal point, which fails.