Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Nov 11, 2024
1 parent b926b40 commit 492496e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/datadog-plugin-aws-sdk/test/s3.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Plugin', () => {

s3 = new AWS.S3({ endpoint: 'http://127.0.0.1:4566', s3ForcePathStyle: true, region: 'us-east-1' })
// Fix for LocationConstraint issue - only for SDK v2
if (moduleName === 'aws-sdk' && s3.api) {
if (s3ClientName === 'aws-sdk') {
s3.api.globalEndpoint = '127.0.0.1'
}
s3.createBucket({ Bucket: bucketName }, (err) => {
Expand Down

0 comments on commit 492496e

Please sign in to comment.