Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjani Kumar Srivastava committed Apr 29, 2024
1 parent 8f7fc50 commit aa9d32f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/provider/services/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func Test_DownloadProviderSourceZip(t *testing.T) {
})

t.Run("when Send fails", func(t *testing.T) {
var length int64 = 10000
var length int64 = 50000
buf := &ClosingBuffer{bytes.NewBuffer(make([]byte, length))}

s3Client := &mocks2.S3{GetObjectOut: &s3.GetObjectOutput{Body: buf, ContentLength: length}}
Expand Down Expand Up @@ -181,7 +181,7 @@ func Test_DownloadShasum(t *testing.T) {
t.Parallel()

t.Run("when shasum file is downloaded", func(t *testing.T) {
var length int64 = 1000
var length int64 = 50000
buf := &ClosingBuffer{bytes.NewBuffer(make([]byte, length))}

s3Client := &mocks2.S3{GetObjectOut: &s3.GetObjectOutput{Body: buf, ContentLength: length}}
Expand Down Expand Up @@ -242,7 +242,7 @@ func Test_DownloadShasum(t *testing.T) {
})

t.Run("when Send fails", func(t *testing.T) {
var length int64 = 1000
var length int64 = 50000
buf := &ClosingBuffer{bytes.NewBuffer(make([]byte, length))}

s3Client := &mocks2.S3{GetObjectOut: &s3.GetObjectOutput{Body: buf, ContentLength: length}}
Expand Down Expand Up @@ -279,7 +279,7 @@ func Test_DownloadShasumSignature(t *testing.T) {
t.Parallel()

t.Run("when shasum signature file is downloaded", func(t *testing.T) {
var length int64 = 1000
var length int64 = 50000
buf := &ClosingBuffer{bytes.NewBuffer(make([]byte, length))}

s3Client := &mocks2.S3{GetObjectOut: &s3.GetObjectOutput{Body: buf, ContentLength: length}}
Expand Down Expand Up @@ -340,7 +340,7 @@ func Test_DownloadShasumSignature(t *testing.T) {
})

t.Run("when Send fails", func(t *testing.T) {
var length int64 = 1000
var length int64 = 50000
buf := &ClosingBuffer{bytes.NewBuffer(make([]byte, length))}

s3Client := &mocks2.S3{GetObjectOut: &s3.GetObjectOutput{Body: buf, ContentLength: length}}
Expand Down

0 comments on commit aa9d32f

Please sign in to comment.