-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move jest timeout outside test #714
Conversation
await page.waitForSelector("#indexes") | ||
await expect( | ||
page.content() | ||
).resolves.toMatch('createdIndexTest') | ||
}, 10000) | ||
}, 30000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remind me the difference between this 30000
and the one in the jest-setup.js
file please? (sorry)
The The It is not stated clearly in the docs, I'm not sure if I should leave that number in both function: similarities here: jestjs/jest#5055 (comment) |
So what is the point to add a timeout of |
Yes, sorry I was editing my previous comment. Let's remove and figure out if that fixes the issue. If not I'll make an issue on their repo |
bors try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I let you merge @bidoubiwa!
bors merge |
Because #713 also timeoud like usual I dig into the same problem again.
I think maybe it is due to the fact that it is not the
tests
that timeout but the whole jest setup.So I tried following this stack overflow:
https://stackoverflow.com/questions/49603939/message-async-callback-was-not-invoked-within-the-5000-ms-timeout-specified-by
who suggests the following: