Skip to content

Commit

Permalink
increase timeout for aws-sdk and next tests (#4421)
Browse files Browse the repository at this point in the history
* increase timeout for aws-sdk and next tests

* increase timeout for profiling integration tests

* increase timeout for appsec tests

* increase timeout for next test setup
  • Loading branch information
rochdev authored and juan-fernandez committed Jul 11, 2024
1 parent aa39927 commit 97a2007
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"test:integration:cypress": "mocha --colors --timeout 30000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/cypress/*.spec.js\"",
"test:integration:playwright": "mocha --colors --timeout 30000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/playwright/*.spec.js\"",
"test:integration:selenium": "mocha --colors --timeout 30000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/selenium/*.spec.js\"",
"test:integration:profiler": "mocha --colors --timeout 90000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/profiler/*.spec.js\"",
"test:integration:profiler": "mocha --colors --timeout 180000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/profiler/*.spec.js\"",
"test:integration:serverless": "mocha --colors --timeout 30000 -r \"packages/dd-trace/test/setup/core.js\" \"integration-tests/serverless/*.spec.js\"",
"test:integration:plugins": "mocha --colors --exit -r \"packages/dd-trace/test/setup/mocha.js\" \"packages/datadog-plugin-@($(echo $PLUGINS))/test/integration-test/**/*.spec.js\"",
"test:unit:plugins": "mocha --colors --exit -r \"packages/dd-trace/test/setup/mocha.js\" \"packages/datadog-instrumentations/test/@($(echo $PLUGINS)).spec.js\" \"packages/datadog-plugin-@($(echo $PLUGINS))/test/**/*.spec.js\" --exclude \"packages/datadog-plugin-@($(echo $PLUGINS))/test/integration-test/**/*.spec.js\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('esm', () => {

withVersions('aws-sdk', ['aws-sdk'], version => {
before(async function () {
this.timeout(20000)
this.timeout(60000)
sandbox = await createSandbox([`'aws-sdk@${version}'`], false, [
'./packages/datadog-plugin-aws-sdk/test/integration-test/*'])
})
Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-plugin-next/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Plugin', function () {
})

before(function (done) {
this.timeout(40000)
this.timeout(120000)
const cwd = standalone
? path.join(__dirname, '.next/standalone')
: __dirname
Expand Down
8 changes: 6 additions & 2 deletions packages/dd-trace/test/appsec/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ const resultActions = {
}
}

describe('AppSec Index', () => {
describe('AppSec Index', function () {
this.timeout(5000)

let config
let AppSec
let web
Expand Down Expand Up @@ -978,7 +980,9 @@ describe('AppSec Index', () => {
})
})

describe('IP blocking', () => {
describe('IP blocking', function () {
this.timeout(5000)

const invalidIp = '1.2.3.4'
const validIp = '4.3.2.1'
const ruleData = {
Expand Down
3 changes: 2 additions & 1 deletion packages/dd-trace/test/setup/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function withNamingSchema (

const { opName, serviceName } = expected[versionName]

it('should conform to the naming schema', () => {
it('should conform to the naming schema', function () {
this.timeout(10000)
return new Promise((resolve, reject) => {
agent
.use(traces => {
Expand Down

0 comments on commit 97a2007

Please sign in to comment.