Skip to content

Commit c9b05cc

Browse files
committed
extend timeout
1 parent e244600 commit c9b05cc

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.kokoro/build-with-run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,6 @@ export CLOUD_SQL_CONNECTION_NAME=$(cat $KOKORO_GFILE_DIR/secrets-pg-connection-n
9292
export IDP_KEY=$(gcloud secrets versions access latest --secret="nodejs-docs-samples-idp-key" --project="${GOOGLE_CLOUD_PROJECT}")
9393

9494
npm test
95+
set -x
9596
npm run --if-present system-test
97+
set +x

run/markdown-preview/editor/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"scripts": {
1717
"start": "node index.js",
1818
"test": "mocha test/app.test.js --timeout=10000 --exit",
19-
"system-test": "mocha test/system.test.js --timeout=300000"
19+
"system-test": "mocha test/system.test.js --timeout=480000 --exit"
2020
},
2121
"dependencies": {
2222
"express": "^4.17.1",

run/markdown-preview/renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"start": "node index.js",
1717
"test": "mocha test/app.test.js --exit",
18-
"system-test": "mocha test/system.test.js --timeout=10000 --exit"
18+
"system-test": "mocha test/system.test.js --timeout=180000 --exit"
1919
},
2020
"dependencies": {
2121
"express": "^4.17.1",

run/markdown-preview/renderer/test/system.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ const {execSync} = require('child_process');
1818
const {GoogleAuth} = require('google-auth-library');
1919
const auth = new GoogleAuth();
2020

21-
const request = (method, route, base_url) => {
21+
const request = (method, route, base_url, id_token) => {
2222
return got(route, new URL(base_url.trim()), {
2323
headers: {
24-
Authorization: ID_TOKEN.trim(),
24+
Authorization: id_token.trim(),
2525
},
2626
method: method || 'get',
2727
throwHttpErrors: false,
@@ -81,7 +81,7 @@ describe('End-to-End Tests', () => {
8181
});
8282

8383
it('post(/) without body is a bad request', async () => {
84-
const response = await request('post', '/', BASE_URL);
84+
const response = await request('post', '/', BASE_URL, ID_TOKEN);
8585
assert.strictEqual(
8686
response.statusCode,
8787
400,

0 commit comments

Comments
 (0)