anchor
anchor copied to clipboard
cli: anchor test does not properly use `--provider.cluster` option
If I set the provider.cluster property in Anchor.toml to devnet
my tests work.
If I set it to localnet but use anchor test --provider.cluster=devnet
, my tests should also work but they dont
2) tic-tac-toe
player one wins:
Error: failed to send transaction: Transaction simulation failed: This program may not be used for executing instructions
Does this work for you?
anchor test --provider.cluster devnet
Having exactly the same issue. https://github.com/project-serum/anchor/issues/1294#issuecomment-1010496978 doesn't work.
I have the same issue too.
Me too. Hope to get know the reason.
Same issue too.
Reinstall the latest stable Solana CLI solve this problem: https://docs.solana.com/getstarted/local#install-the-solana-cli
It sounds like this might be fixed then?