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

[run-tests][fix][tests] Fix resource leak in tests. Call cleanup before setup #88

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

lhotari
Copy link
Owner

@lhotari lhotari commented Sep 20, 2022

upstream PR apache#17743

@lhotari lhotari changed the title [fix][tests] Fix resource leak in tests. Call cleanup before setup [run-tests][fix][tests] Fix resource leak in tests. Call cleanup before setup Sep 20, 2022
- when setup is called explicitly, cleanup should be issued before it
- remove unnecessary "resetConfig" method calls
  - resetConfig gets called as part of internalCleanup
  - when resetConfig is in cleanup, it's possible to override config before calling setup
    - this allows using setup & cleanup methods instead of using
      error prone internalSetup and internalCleanup methods which might leave something behind
@lhotari lhotari force-pushed the lh-fix-resourceleak-in-tests branch from 13bdf51 to 486c670 Compare September 20, 2022 20:19
@lhotari lhotari merged commit dc039c0 into master Sep 21, 2022
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.

1 participant