Use real S3 for tests

This commit is contained in:
binwiederhier 2026-03-22 08:15:23 -04:00
parent ad501feab1
commit f2d4575831
3 changed files with 71 additions and 241 deletions

View file

@ -86,7 +86,7 @@ func (c *Client) putObject(ctx context.Context, key string, body io.Reader, size
if err != nil {
return fmt.Errorf("uploading object %s failed: %w", key, err)
}
resp.Body.Close()
defer resp.Body.Close()
if !isHTTPSuccess(resp) {
return parseError(resp)
}