Skip to content

fix(site): wait until port is available in e2e#15537

Merged
dannykopping merged 5 commits into
mainfrom
fix-e2e-212-wait-for-server
Nov 18, 2024
Merged

fix(site): wait until port is available in e2e#15537
dannykopping merged 5 commits into
mainfrom
fix-e2e-212-wait-for-server

Conversation

@mtojek

@mtojek mtojek commented Nov 15, 2024

Copy link
Copy Markdown
Member

Related: coder/internal#212

This PR modifies the logic responsible for creating a server in E2E tests to check if the port is free. Alternatively, we could refactor the framework to dynamically create server instances, but this solution might be a cheaper quick win.

Note:

I'll leave it as is now, it might be worth asking somebody with a frontend skillset to double-check this contribution.

@mtojek mtojek self-assigned this Nov 15, 2024
@mtojek mtojek changed the title fix(site): e2e: wait until port is available) fix(site): wait until port is available in e2e Nov 15, 2024
@mtojek mtojek requested a review from dannykopping November 15, 2024 16:47
@mtojek mtojek marked this pull request as ready for review November 15, 2024 16:47
Signed-off-by: Danny Kopping <danny@coder.com>

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the assist on this one @mtojek!

Tested this locally and it works, let's try it out in CI.

Signed-off-by: Danny Kopping <danny@coder.com>
@dannykopping dannykopping enabled auto-merge (squash) November 18, 2024 10:20
@dannykopping dannykopping merged commit 8ca8e01 into main Nov 18, 2024
@dannykopping dannykopping deleted the fix-e2e-212-wait-for-server branch November 18, 2024 10:28
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.

2 participants