浏览代码

docs: Clarify that solana-test-validator should be closed for anchor test (#616)

harkl 4 年之前
父节点
当前提交
c3a7b42b1e
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      docs/src/cli/commands.md

+ 5 - 1
docs/src/cli/commands.md

@@ -93,7 +93,11 @@ of all workspace programs before running them.
 If the configured network is a localnet, then automatically starts the localnetwork and runs
 the test.
 
-When running tests we stream program logs to .anchor/program-logs/<address>.<program-name>.log
+::: tip Note
+Be sure to shutdown any other local validators, otherwise `anchor test` will fail to run.
+:::
+
+When running tests we stream program logs to `.anchor/program-logs/<address>.<program-name>.log`
 
 ::: tip Note
 The Anchor workflow [recommends](https://www.parity.io/paritys-checklist-for-secure-smart-contract-development/)