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

logger: fix case TestUpdateCfg #100

Merged
merged 4 commits into from
Sep 27, 2022
Merged

Conversation

djshow832
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close none

Problem Summary:

The test case TestUpdateCfg is unstable: the backup files are not removed immediately.

What is changed and how it works:

It's probably caused by asynchronously removing files. I added some delay to the check.
I added a loop to run it 100 times, it always succeeds no matter before or after this PR.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Notable changes

  • Has configuration change
  • Has HTTP API interfaces change (Don't forget to add the declarative for API)
  • Has weirctl change
  • Other user behavior changes

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

pkg/manager/logger/manager_test.go Outdated Show resolved Hide resolved
pkg/manager/logger/manager_test.go Outdated Show resolved Hide resolved
@xhebox xhebox merged commit b3616a3 into pingcap:main Sep 27, 2022
@djshow832 djshow832 deleted the fix_update_cfg branch September 27, 2022 10:03
xhebox pushed a commit to xhebox/TiProxy that referenced this pull request Mar 7, 2023
xhebox pushed a commit to xhebox/TiProxy that referenced this pull request Mar 13, 2023
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