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

chore(test): Improve S3FileSystemProviderTest robustness #195

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

guicamest
Copy link
Contributor

Description of changes:

After checking out the project and running the tests, they would fail or not depending on the order the tests are run (it is not guaranteed they are by default).

I've noticed S3PathTest.testEquals creates foo fs but it is not closed; S3FileSystemProviderTest uses foo fs for its tests.
So this PR introduces 2 changes:

  • Cleanup fs in testEquals after creating it
  • Get or create fs in S3FileSystemProviderTest so that it is not affected by other tests leaking resources

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@guicamest guicamest changed the title chore: Improve test robustness chore(test): Improve S3FileSystemProviderTest robustness Sep 29, 2023
Copy link
Contributor

@markjschreiber markjschreiber left a comment

Choose a reason for hiding this comment

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

Thanks for spotting and fixing this problem!

@markjschreiber markjschreiber merged commit 2523b87 into awslabs:main Oct 2, 2023
1 check passed
@guicamest guicamest deleted the improveTestRobustness branch October 2, 2023 17:57
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