Skip to content

Commit

Permalink
yalla kadima
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 25, 2024
1 parent 7e42c88 commit b46deb3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions esti/s3_gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,8 @@ func TestS3IfNoneMatch(t *testing.T) {
Key: aws.String(tc.Path),
Body: strings.NewReader(tc.Content),
}
_, err := s3Client.PutObject(ctx, input, func(o *s3.Options) {
o.APIOptions = append(o.APIOptions, setHTTPHeaders(tc.IfNoneMatch))
})
_, err := s3Client.PutObject(ctx, input, s3.WithAPIOptions(setHTTPHeaders(tc.IfNoneMatch)))

if tc.ExpectError {
require.Error(t, err, "was expecting an error")
} else {
Expand Down

0 comments on commit b46deb3

Please sign in to comment.