Skip to content

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 force-pushed the improveTestRobustness branch from cce50e7 to 18b8bf3 Compare September 29, 2023 12:20
@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
@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