Skip to content

Fix log file rotation test.#41239

Merged
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_racey_logger_test
Jul 20, 2020
Merged

Fix log file rotation test.#41239
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_racey_logger_test

Conversation

@cpuguy83
Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 commented Jul 20, 2020

fixes #41138

The test was looking for the wrong file name.
Since compression happens asyncronously, sometimes the test would
succeed and sometimes fail.

This change makes sure to wait for the compressed version of the file
since we can't know when the compression is going to occur.

Taken from #41100

The test was looking for the wrong file name.
Since compression happens asyncronously, sometimes the test would
succeed and sometimes fail.

This change makes sure to wait for the compressed version of the file
since we can't know when the compression is going to occur.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83 cpuguy83 requested review from thaJeztah and tonistiigi July 20, 2020 21:20
@cpuguy83
Copy link
Copy Markdown
Member Author

Pulled this racey test fix to a separate PR so we can stop having CI fail on most runs sooner.

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

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.

flaky test: TestCheckCapacityAndRotate

3 participants