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
test: add fail message
Chris Lu4cbd390fbe63
diff --git a/weed/util/skiplist/skiplist_test.go b/weed/util/skiplist/skiplist_test.goindex e423e8b276..7ce7b48435 100644--- a/weed/util/skiplist/skiplist_test.go+++ b/weed/util/skiplist/skiplist_test.go@@ -230,7 +230,7 @@ func TestFindGreaterOrEqual(t *testing.T) {// Test on empty list.if _, _, ok, _ := listPointer.FindGreaterOrEqual(Element(0)); ok {- t.Fail()+ t.Errorf("found element 0 in an empty list")}list = New(memStore)@@ -250,16 +250,14 @@ func TestFindGreaterOrEqual(t *testing.T) {// 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.if bytes.Compare(v.Key, key) < 0 {- fmt.Printf("v: %s\n key: %s\n\n", string(v.Key), string(key))- t.Fail()+ t.Errorf("v: %s\n key: %s\n\n", string(v.Key), string(key))}} else {lastNode, _ := list.GetLargestNode()lastV := lastNode.GetValue()// It is OK, to fail, as long as f is bigger than the last element.if bytes.Compare(key, lastV) <= 0 {- fmt.Printf("lastV: %s\n key: %s\n\n", string(lastV), string(key))- t.Fail()+ t.Errorf("lastV: %s\n key: %s\n\n", string(lastV), string(key))}}}