mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
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:
co-authored by
Claude Opus 4.6
parent
d81ede1818
commit
4b559dc657
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user