Skip to content

Commit 38cb935

Browse files
authored
increase next.js test timeout to 5 minutes (#5442)
1 parent 2c5e17c commit 38cb935

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/datadog-plugin-next/test/index.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Plugin', function () {
3030
})
3131

3232
before(function (done) {
33-
this.timeout(120000)
33+
this.timeout(300 * 1000)
3434
const cwd = standalone
3535
? path.join(__dirname, '.next/standalone')
3636
: __dirname
@@ -68,7 +68,7 @@ describe('Plugin', function () {
6868
})
6969

7070
after(async function () {
71-
this.timeout(5000)
71+
this.timeout(30 * 1000)
7272

7373
server.kill()
7474

packages/datadog-plugin-next/test/integration-test/client.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('esm', () => {
1919
withVersions('next', 'next', '>=11.1', version => {
2020
before(async function () {
2121
// next builds slower in the CI, match timeout with unit tests
22-
this.timeout(120 * 1000)
22+
this.timeout(300 * 1000)
2323
sandbox = await createSandbox([`'next@${version}'`, 'react@^18.2.0', 'react-dom@^18.2.0'],
2424
false, ['./packages/datadog-plugin-next/test/integration-test/*'],
2525
'NODE_OPTIONS=--openssl-legacy-provider yarn exec next build')
@@ -47,6 +47,6 @@ describe('esm', () => {
4747
assert.isArray(payload)
4848
assert.strictEqual(checkSpansForServiceName(payload, 'next.request'), true)
4949
}, undefined, undefined, true)
50-
}).timeout(120 * 1000)
50+
}).timeout(300 * 1000)
5151
})
5252
})

packages/dd-trace/test/appsec/index.next.plugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('test suite', () => {
2323
const appDir = path.join(__dirname, 'next', appName)
2424

2525
before(async function () {
26-
this.timeout(120 * 1000) // Webpack is very slow and builds on every test run
26+
this.timeout(300 * 1000) // Webpack is very slow and builds on every test run
2727

2828
const cwd = appDir
2929

0 commit comments

Comments
 (0)