From bdb93cf5c906e045d9e0ddaee7765bcf38628bc5 Mon Sep 17 00:00:00 2001 From: sergeyb Date: Wed, 25 Feb 2026 16:45:23 +0000 Subject: [PATCH] chore(claude): CLAUDE.md to avoid change detector tests --- CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CLAUDE.md b/CLAUDE.md index 86bc20ad..9d7db96b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -187,6 +187,7 @@ make clean # Clean Bazel cache ### Testing - **Avoid asserting on error messages** — assert on error type or generic error. +- **No change detector tests** — don't assert on default values, internal structure, or implementation details that can change without affecting behavior. Test what the code *does*, not how it's constructed. - **No `time.Sleep` for synchronization** — use channels, callbacks, condition variables. - **Use testify** — `assert`/`require` instead of `t.Fatal()`.