|
|
|
@ -25,7 +25,7 @@ func TestPlainObjectRangeAndHeadHeaders(t *testing.T) { |
|
|
|
require.NoError(t, err, "failed to create test bucket") |
|
|
|
defer cleanupTestBucket(ctx, client, bucketName) |
|
|
|
|
|
|
|
const objectSize = 12 * 1024 * 1024 // 12MiB to force multiple SeaweedFS chunks
|
|
|
|
const objectSize = 33 * 1024 * 1024 // 33MiB to exceed default 32MB chunk size and force multiple chunks
|
|
|
|
objectKey := "plain-range-validation" |
|
|
|
testData := generateTestData(objectSize) |
|
|
|
|
|
|
|
@ -47,7 +47,8 @@ func TestPlainObjectRangeAndHeadHeaders(t *testing.T) { |
|
|
|
}) |
|
|
|
|
|
|
|
t.Run("Range request across chunk boundary", func(t *testing.T) { |
|
|
|
rangeStart := int64(8*1024*1024 - 1024) |
|
|
|
// Test range that spans the 32MB chunk boundary (32MB - 1KB to 32MB + 3KB)
|
|
|
|
rangeStart := int64(32*1024*1024 - 1024) |
|
|
|
rangeEnd := rangeStart + 4096 - 1 |
|
|
|
rangeHeader := fmt.Sprintf("bytes=%d-%d", rangeStart, rangeEnd) |
|
|
|
|
|
|
|
|