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
use tempFile.Truncate to reset file size to speedup test
bingoohuangcf0fc797ac3d
diff --git a/weed/storage/needle_read_write_test.go b/weed/storage/needle_read_write_test.goindex 8bd9205c1e..2532e6a382 100644--- a/weed/storage/needle_read_write_test.go+++ b/weed/storage/needle_read_write_test.go@@ -1,9 +1,7 @@package storageimport (- "crypto/rand""github.com/chrislusf/seaweedfs/weed/storage/types"- "io""io/ioutil""os""testing"@@ -49,7 +47,7 @@ func TestAppend(t *testing.T) {*/fileSize := int64(4294967295) + 10000- io.CopyN(tempFile, rand.Reader, fileSize)+ tempFile.Truncate(fileSize)defer func() {tempFile.Close()os.Remove(tempFile.Name())