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

feat: harden integration tests #276

Merged
merged 2 commits into from
Dec 19, 2022
Merged

Conversation

vjerci
Copy link
Contributor

@vjerci vjerci commented Dec 16, 2022

Description

This pr sets a default timeout of 1min per integration tests.
If the timeout is reached without command finishing its execution the test case should fail.

The goal is to have certain test fail and prevent hanging the whole test suite.

Related

#266

Checklist

  • I've added test coverage that shows my fix or feature works as expected.
  • I've included usage information in the description if CLI behavior was updated or added.
  • PR title follows Conventional Commits format

@swarmia
Copy link

swarmia bot commented Dec 16, 2022

✅  Linked to AMA-3316 · fix integration tests
➡️  Part of AMA-2947 · OSS - Curio CLI

Copy link
Contributor

@spdawson spdawson left a comment

Choose a reason for hiding this comment

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

💪

@cfabianski
Copy link
Collaborator

That's cool! Do you know if this is going to be enough to return the error if an issue is happening on the worker side?

@vjerci
Copy link
Contributor Author

vjerci commented Dec 19, 2022

That's cool! Do you know if this is going to be enough to return the error if an issue is happening on the worker side?

@cfabianski I've tested it by adding sleep(10*time.Minute) to worker, and it successfully killed the test.

@vjerci vjerci merged commit 4dcb5f1 into main Dec 19, 2022
@vjerci vjerci deleted the AMA-3316/harden-integration-test branch December 19, 2022 16:52
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.

None yet

3 participants