doc: add -gcflags="all=-N -l" to test instructions in CLAUDE.md (#47875)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
congqixia
2026-02-26 15:24:46 +08:00
committed by GitHub
co-authored by Claude Opus 4.6
parent d81ede1818
commit 4b559dc657
+3 -3
View File
@@ -12,11 +12,11 @@ Coordinators manage metadata and scheduling; nodes execute work.
## Testing
Go tests MUST use `-tags dynamic,test` or they won't compile:
Go tests MUST use `-tags dynamic,test` and `-gcflags="all=-N -l"` (disable optimizations/inlining) or they won't compile / mockey-based monkey patching will fail:
```bash
go test -tags dynamic,test -count=1 ./internal/querycoordv2/...
go test -tags dynamic,test -count=1 ./internal/proxy/... -run TestXxx
go test -tags dynamic,test -gcflags="all=-N -l" -count=1 ./internal/querycoordv2/...
go test -tags dynamic,test -gcflags="all=-N -l" -count=1 ./internal/proxy/... -run TestXxx
```
Per-module shortcuts: `make test-querycoord`, `make test-proxy`, etc.