core-contracts icon indicating copy to clipboard operation
core-contracts copied to clipboard

Fix tests for `multisig`, `staking-pool` and `staking-pool-factory`

Open telezhnaya opened this issue 4 years ago • 1 comments

cargo test is broken for:

  • [ ] multisig
  • [ ] staking-pool
  • [ ] staking-pool-factory

The CI is switched off for these contracts. It is switched on only for this list https://github.com/near/core-contracts/blob/master/scripts/contracts.json

@evgenykuzyakov could you please help with this?

telezhnaya avatar Jul 12 '21 16:07 telezhnaya

Just FYI, I was looking into similar tests and found that a culprit was the rust-toolchain file. I was updating a contract to a newer version and it would look "up" a directory and find the toolchain file and use that. This is not a solution, but the way I got around it was to do cargo +stable test -- --nocapture

I think the better solution is to follow what we did with near-sdk-rs where we have Docker build them. https://github.com/near/near-sdk-rs/blob/15c63cde9e08c242e9d26bb5e07991f51c13ff45/examples/build_all_docker.sh

mikedotexe avatar Oct 20 '21 22:10 mikedotexe