Skip to content
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

fix(server-tests): errored tests after Node 15.3.0 update #5744

Merged

Conversation

wentwrong
Copy link
Contributor

@wentwrong wentwrong commented Nov 25, 2020

I assume that Gulp's domain error handlers started to catch the unhandled promise rejections (placed in the tests for a reason) and interrupt test execution after "Unhandled rejections become errors on the domain" functionality shipped in Node 15.3.0. So, we need to bypass Gulp's error domains (using @AndreyBelym's hack).

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

2 similar comments
@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

Gulpfile.js Outdated
@@ -376,12 +376,42 @@ gulp.task('build', DEV_MODE ? gulp.registry().get('fast-build') : gulp.parallel(
// Test
gulp.step('prepare-tests', gulp.registry().get(SKIP_BUILD ? 'lint' : 'build'));

function exitDomains () {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the exitDomains and enterDomains functions to the gulp/helpers/domain.js file.
Also add the !gulp statement to the .gitignore file - https://github.com/DevExpress/testcafe/pull/5724/files#diff-2f754321d62f08ba8392b9b168b83e24ea2852bb5d815d63e767f6c3d23c6ac5R3

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit a786823 have passed. See details.

1 similar comment
@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit a786823 have passed. See details.

@AndreyBelym AndreyBelym marked this pull request as ready for review November 26, 2020 10:12
@AndreyBelym AndreyBelym merged commit 4010584 into DevExpress:master Nov 26, 2020
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.

4 participants