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(testing): ensure e2e cypress can use 4200 port in the test #16646

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

meeroslav
Copy link
Contributor

Current Behavior

In some cases, port 4200 remains occupied (probably some test does not clean its resources), in which case this test fails as it explicitly expects 4200 to be free.

Expected Behavior

Ensure port 4200 is freed before we start the test

Related Issue(s)

Fixes #

@vercel
Copy link

vercel bot commented Apr 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Apr 28, 2023 5:46pm

Comment on lines +146 to +149
it('should run e2e in parallel', async () => {
// ensure ports are free before running tests
await killPort(4200);

Copy link
Contributor

Choose a reason for hiding this comment

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

interesting, because the whole point of this feature is that it can handle ports already taken, I guess makes sense to have a known clean slate, but test ideally should not have been failing from that.

@github-actions
Copy link

github-actions bot commented May 4, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants