Skip to content

Commit

Permalink
its gonna work i tell u
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 26, 2024
1 parent 67da789 commit 005f174
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esti/s3_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/aws/smithy-go/middleware"
smithyhttp "github.com/aws/smithy-go/transport/http"
"github.com/go-openapi/swag"
"github.com/thanhpk/randstr"

"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
Expand Down Expand Up @@ -208,6 +209,7 @@ func TestMultipartUploadIfNoneMatch(t *testing.T) {
defer tearDownTest(repo)
s3Endpoint := viper.GetString("s3_endpoint")
s3Client := createS3Client(s3Endpoint, t)
multipartNumberOfParts := 7
type TestCase struct {
Path string
Content string
Expand All @@ -230,6 +232,9 @@ func TestMultipartUploadIfNoneMatch(t *testing.T) {
logger.Info("Created multipart upload request")

parts := make([][]byte, multipartNumberOfParts)
for i := 0; i < multipartNumberOfParts; i++ {
parts[i] = randstr.Bytes(multipartPartSize + i)
}

completedParts := uploadMultipartParts(t, ctx, s3Client, logger, resp, parts, 0)

Expand Down

0 comments on commit 005f174

Please sign in to comment.