Skip to content

Commit fe49fa0

Browse files
authored
fix(tests): Increasing Mocha timeouts (#2649)
* Increasing Mocha timeouts * Fixing failing acceptance tests. * Changing default dyno size for one-offs
1 parent 25f0948 commit fe49fa0

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

packages/addons-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
--recursive
33
--check-leaks
44
--require ./test/init.js
5-
--timeout 60000
5+
--timeout 180000

packages/apps-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
--require ./test/helpers.js
33
--reporter list
44
--recursive
5-
--timeout 60000
5+
--timeout 180000

packages/certs-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
--require ./test/helpers.js
33
--reporter list
44
--recursive
5-
--timeout 60000
5+
--timeout 180000

packages/ci-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test
22
--recursive
3-
--timeout 60000
3+
--timeout 180000
44
-R dot
55
--require test/test-setup.js

packages/cli/test/acceptance/smoke.acceptance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ describe('@acceptance smoke tests', () => {
142142
})
143143

144144
it('heroku run', async () => {
145-
const {stdout} = await run(['run', '--exit-code', appFlag, 'echo', 'it works!'].join(' '))
145+
const {stdout} = await run(['run', '--size=private-s', '--exit-code', appFlag, 'echo', 'it works!'].join(' '))
146146
expect(stdout).to.contain('it works!')
147147
})
148148

packages/cli/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
--watch-extensions ts
55
--recursive
66
--reporter spec
7-
--timeout 60000
7+
--timeout 180000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
--require ./test/helpers.js
22
--reporter list
33
--recursive
4-
--timeout 60000
4+
--timeout 180000

packages/oauth-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--require ./test/init.js
22
--recursive
3-
--timeout 60000
3+
--timeout 180000

packages/orgs-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--require ./test/helpers.js
22
--recursive
3-
--timeout 60000
3+
--timeout 180000

packages/pg-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--recursive
22
--require ./test/init.js
3-
--timeout 60000
3+
--timeout 180000

packages/redis-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
--reporter list
33
--recursive
44
--exit
5-
--timeout 60000
5+
--timeout 180000

packages/run-v5/test/integration/run.integration.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ describe('run', () => {
1616
fixture.capture(s => {
1717
stdout += s
1818
})
19-
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {}, auth: {password: global.apikey}, args: ['echo', '1', '2', '3']})
19+
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {size: 'private-s'}, auth: {password: global.apikey}, args: ['echo', '1', '2', '3']})
2020
.then(() => fixture.release())
21-
.then(() => expect(stdout).to.contain('1 2 3\n'))
21+
.then(() => expect(stdout).to.contain('1 2 3'))
2222
})
2323

2424
it('runs a command with spaces', () => {
@@ -27,9 +27,9 @@ describe('run', () => {
2727
fixture.capture(s => {
2828
stdout += s
2929
})
30-
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {}, auth: {password: global.apikey}, args: ['ruby', '-e', 'puts ARGV[0]', '{"foo": "bar"} ']})
30+
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {size: 'private-s'}, auth: {password: global.apikey}, args: ['ruby', '-e', 'puts ARGV[0]', '{"foo": "bar"} ']})
3131
.then(() => fixture.release())
32-
.then(() => expect(stdout).to.contain('{"foo": "bar"} \n'))
32+
.then(() => expect(stdout).to.contain('{"foo": "bar"} '))
3333
})
3434

3535
it('runs a command with quotes', () => {
@@ -38,9 +38,9 @@ describe('run', () => {
3838
fixture.capture(s => {
3939
stdout += s
4040
})
41-
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {}, auth: {password: global.apikey}, args: ['ruby', '-e', 'puts ARGV[0]', '{"foo":"bar"}']})
41+
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {size: 'private-s'}, auth: {password: global.apikey}, args: ['ruby', '-e', 'puts ARGV[0]', '{"foo":"bar"}']})
4242
.then(() => fixture.release())
43-
.then(() => expect(stdout).to.contain('{"foo":"bar"}\n'))
43+
.then(() => expect(stdout).to.contain('{"foo":"bar"}'))
4444
})
4545

4646
it('runs a command with env vars', () => {
@@ -49,7 +49,7 @@ describe('run', () => {
4949
fixture.capture(s => {
5050
stdout += s
5151
})
52-
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {env: 'FOO=bar'}, auth: {password: global.apikey}, args: ['env']})
52+
return cmd.run({app: 'heroku-cli-ci-smoke-test-app', flags: {size: 'private-s', env: 'FOO=bar'}, auth: {password: global.apikey}, args: ['env']})
5353
.then(() => fixture.release())
5454
.then(() => expect(stdout).to.contain('FOO=bar'))
5555
})

packages/run-v5/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
--require ./test/init.js
22
--recursive
3-
--timeout 60000
3+
--timeout 180000
44
--exit

packages/spaces/test/mocha.opts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
--require ./test/helpers.js
22
--reporter list
33
--recursive
4-
--timeout 60000
4+
--timeout 180000

0 commit comments

Comments
 (0)