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

Skip cloudflare CLI tests if fail to start #8417

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 5, 2023

Changes

cc @Princesseuh

I tried to use retries, but Mocha doesn't support it in the before hook. Implementing retries manually is also tricky, so I went with this PR instead - Try to run the test as usual, but if startup fails, skip the test suite.

Testing

Ran the cloudflare tests locally. I've not seen it fail locally though.

Docs

n/a.

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2023

⚠️ No Changeset found

Latest commit: 06aebf2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Sep 5, 2023
cli = await runCLI('./fixtures/cf/', { silent: false, port: 8788 });
await cli.ready;
cli = await runCLI('./fixtures/cf/', { silent: true, port: 8786 });
Copy link
Member Author

Choose a reason for hiding this comment

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

Changed the port number as it's close to the other test's 8789 port, which maybe was causing issues somehow.

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Nice, thank you for the QoL improvement!

@natemoo-re natemoo-re merged commit 837ad16 into main Sep 5, 2023
13 checks passed
@natemoo-re natemoo-re deleted the skip-cf-if-fail branch September 5, 2023 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants