From 7860e720bd9095be65edc8b1f0e86f1390bd5a74 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 22 Aug 2025 12:07:51 -0400 Subject: [PATCH] Don't use sleep incorrectly --- design.md | 1 + 1 file changed, 1 insertion(+) diff --git a/design.md b/design.md index f87538e..5176159 100644 --- a/design.md +++ b/design.md @@ -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`) - **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 +- **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 ---