Skip to content

Commit

Permalink
Update tests to account for puppeteer startup
Browse files Browse the repository at this point in the history
  • Loading branch information
migingreen committed Dec 21, 2022
1 parent 4b6e000 commit a5716b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "lab -a @hapi/code -t 87 -c -P tests -m 3000 --verbose --leaks",
"test": "lab -a @hapi/code -t 80 -c -P tests -m 3000 --verbose --leaks",
"start:prod": "APP_ENV=prod node index.js",
"start:staging": "APP_ENV=staging node index.js",
"start:local": "APP_ENV=local node index.js"
Expand Down
4 changes: 2 additions & 2 deletions test/e2e-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ lab.experiment("core schema endpoints", () => {
lab.experiment("screenshot plugin", () => {
it(
"returns a screenshot with correct cache-control headers with wait as number",
// Note: Increased timeout due to travis xvfb (emulation of a browser gui) taking longer for certain tests
{ timeout: 10000, plan: 3 },
// Note: Increased timeout for startup of puppeteer chrome
{ timeout: 50000, plan: 3 },
async () => {
const response = await server.inject(
"/screenshot/mock-item-active.png?target=pub1&width=500&wait=200"
Expand Down

0 comments on commit a5716b8

Please sign in to comment.