From 9d4d8e551ef3febc8cc70cba3deef3d70a7e9af5 Mon Sep 17 00:00:00 2001 From: jon-chuang <9093549+jon-chuang@users.noreply.github.com> Date: Sat, 8 May 2021 13:56:01 +0800 Subject: [PATCH] docs: Instruct users not to leave solana-test-validator running (#262) --- docs/src/tutorials/tutorial-0.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/src/tutorials/tutorial-0.md b/docs/src/tutorials/tutorial-0.md index e100b65d..e4315688 100644 --- a/docs/src/tutorials/tutorial-0.md +++ b/docs/src/tutorials/tutorial-0.md @@ -19,7 +19,7 @@ cd anchor/examples/tutorial/basic-0 ## Starting a Localnet -In a separate terminal, start a local network for testing. If you're running solana +In a separate terminal, start a local network. If you're running solana for the first time, generate a wallet. ``` @@ -32,6 +32,10 @@ Then run solana-test-validator ``` +Then, shut it down. + +The test validator will be used when testing Anchor programs. Make sure to turn off the validator before you begin testing Anchor programs. + ::: details As you'll see later, starting a localnet manually like this is not necessary when testing with Anchor, but is done for educational purposes in this tutorial.