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

test: fix bkHttpServiceProvider not closed in TestHttpService #4349

Merged
merged 1 commit into from
May 9, 2024

Conversation

shoothzj
Copy link
Member

@shoothzj shoothzj commented May 7, 2024

Main Issue: may related to #1614

Motivation

The bkHttpServiceProvider was not being closed after the completion of the test cases in TestHttpService.

Changes

  1. JUnit Imports Update: Switched imports to junit.jupiter.api.
  2. Service Closure Enhancement: Added an @AfterEach method to close bkHttpServiceProvider after each test run.
  3. Assertion Refactor: Refactored assertions for improved readability and consistency using appropriate assertTrue, assertFalse, assertNull, and assertEquals methods.

Signed-off-by: ZhangJian He <shoothzj@gmail.com>
@shoothzj shoothzj force-pushed the bkHttpServiceProvider-close branch from 7b9ff97 to 6c3bc8d Compare May 8, 2024 05:27
@shoothzj
Copy link
Member Author

shoothzj commented May 9, 2024

@shoothzj shoothzj requested a review from zymap May 9, 2024 03:14
Copy link
Contributor

@StevenLuMT StevenLuMT left a comment

Choose a reason for hiding this comment

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

LGTM

@shoothzj shoothzj merged commit d2e0e5b into apache:master May 9, 2024
21 checks passed
@shoothzj shoothzj deleted the bkHttpServiceProvider-close branch May 9, 2024 11:06
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 25, 2024
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants