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(s3/versioning): read the whole version body instead of one Read (#10815)
Chris Lu358fd314eaa4
diff --git a/test/s3/versioning/s3_versioning_pagination_stress_test.go b/test/s3/versioning/s3_versioning_pagination_stress_test.goindex 507427ff0b..5da4f15f0f 100644--- a/test/s3/versioning/s3_versioning_pagination_stress_test.go+++ b/test/s3/versioning/s3_versioning_pagination_stress_test.go@@ -3,6 +3,7 @@ package s3apiimport ("context""fmt"+ "io""os""strings""testing"@@ -184,12 +185,11 @@ func TestVersioningPaginationOver1000Versions(t *testing.T) {})require.NoError(t, err, "Failed to get version at index %d", idx)- buf := make([]byte, len(expectedContent))- _, err = getResp.Body.Read(buf)- require.NoError(t, err)+ body, err := io.ReadAll(getResp.Body)getResp.Body.Close()+ require.NoError(t, err, "Failed to read version at index %d", idx)- assert.Equal(t, expectedContent, string(buf), "Content mismatch for version %d", idx+1)+ assert.Equal(t, expectedContent, string(body), "Content mismatch for version %d", idx+1)}})}