docs: Instruct users not to leave solana-test-validator running (#262)

This commit is contained in:
jon-chuang 2021-05-08 13:56:01 +08:00 committed by GitHub
parent 791269d3e3
commit 9d4d8e551e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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.