Skip to content

Conversation

@lerouxb
Copy link
Contributor

@lerouxb lerouxb commented May 11, 2022

No description provided.

} 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);
Copy link
Contributor Author

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]);
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@lerouxb lerouxb merged commit 88b9095 into main May 16, 2022
@lerouxb lerouxb deleted the local-files-include-filter branch May 16, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants