Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

supervacuus
Copy link
Collaborator

@supervacuus supervacuus commented Sep 17, 2025

Logger unit tests are always written from a single-threaded perspective. As such, they should be running inside the transport-based test suite since the transport could be concurrently logging and thus would lead to flaky test assertions.

#skip-changelog

@supervacuus
Copy link
Collaborator Author

This is a minor follow-up to the logger when crashed options, @mujacica.

@supervacuus
Copy link
Collaborator Author

supervacuus commented Sep 17, 2025

Btw, the failing concurrent_init test on the TSAN build is fixed here: #1377 if you want to take a look (and only if you have time).

bool assert_now;
} logger_test_t;

// Note: All logger unit-tests must only run from the transportless unit-test
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for adding a comment, makes sense to exclude these.

@supervacuus supervacuus merged commit 677e85e into master Sep 17, 2025
39 of 41 checks passed
@supervacuus supervacuus deleted the test/fix_flaky_logger_test branch September 17, 2025 14:21
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