1

When I run anchor test command get this error .

Error: Your configured rpc port: 8899 is already in use

I checked that port but look like there is no such process is using that port on my device .

1 Answer 1

3

Anchor Test start's a local validator deploys the program and then run's the test functions. If you want to just run the test's use the command anchor run test.If you wish to use anchor test then you have to kill the local validator that is already in use.

1
  • 1
    How can I kill the local validator that is already in use ? Aug 4, 2022 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.