When running anchor test
on a fresh project without any change, I got following error:
Unable to get recent blockhash. Test validator does not look started. Check {} for errors. Consider increasing [test.startup_wait] in Anchor.toml.
I first tried increasing startup_wait
as suggested, but that didn't worked, then tried running solana-test-validator --log
and saw error was:
Aborted (core dumped)
So I also tried building it from source as suggested in this answer, but got another error when running solana-test-validator --log
again:
Illegal instruction (core dumped)