-
Notifications
You must be signed in to change notification settings - Fork 246
chore: one should be enough? #3079
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
Conversation
| } catch (err) { | ||
| // just leave it unparsed for now if there's a parse error because | ||
| // that's really helpful when debugging | ||
| console.error('Could not parse result:', result); |
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.
Trying to figure out AssertionError: expected 'TypeError: Cannot read property \'res…' to have property 'ok'
| return; | ||
| })(); | ||
|
|
||
| return Promise.race([timeoutPromise, closePromise]); |
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.
For some reason afterAll for some tests (where it just calls this function that closes compass) often times out after 120 seconds. Even though I can see this reach the end..
Figured I can just time it out because we're already suppressing all errors that can happen while we close compass anyway.
The reason we suppress errors is because you can't close compass if it already crashed which is the most likely reason for this stuff to fail. And we don't want to get into a situation where the entire e2e test run has to time out before it fails. Rather fail fast and with the real error, not some compounding error's eventual fallout.
| - <<: *save-diagnostic-file | ||
| params: | ||
| local_files_include_filter: | ||
| - src/packages/compass-e2e-tests/.log/report.json |
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.
This should help with it complaining in red that report.json doesn't exist
No description provided.