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

fix(tests): Fix flaky TestCloneGlobalLogger #2775

Merged
merged 2 commits into from
Mar 21, 2024
Merged

Conversation

e-sumin
Copy link
Contributor

@e-sumin e-sumin commented Mar 21, 2024

Change Overview

Due to asynchronous nature of FluentbitHook test was not always passing. I've replaced it with synchronous hook, which guarantees the order of execution.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

}

type testLogHook struct{}
type testLogHook struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: should we call it just logHook?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree, done.

@e-sumin e-sumin added the kueue label Mar 21, 2024
@mergify mergify bot merged commit 67985d8 into master Mar 21, 2024
14 checks passed
@mergify mergify bot deleted the fix-tests-flaky-logger branch March 21, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] LogSuite.TestCloneGlobalLogger test fails frequently
2 participants