Don't use sleep incorrectly

This commit is contained in:
2025-08-22 12:07:51 -04:00
parent 0e63d5e80f
commit 7860e720bd

View File

@@ -298,6 +298,7 @@ This write-side component is designed to integrate with:
- **Configuration**: All configuration is TOML-based using `config.toml` (see `config.md`) - **Configuration**: All configuration is TOML-based using `config.toml` (see `config.md`)
- **Testing Strategy**: Run unit tests, benchmarks, and debug tools before submitting changes - **Testing Strategy**: Run unit tests, benchmarks, and debug tools before submitting changes
- **Build System**: CMake generates gperf hash tables at build time; always use ninja - **Build System**: CMake generates gperf hash tables at build time; always use ninja
- **Test Synchronization**: NEVER use sleep() for test synchronization - it makes tests slow and flaky. Use proper synchronization primitives like std::latch (C++20), condition variables, or promises/futures instead
--- ---