Zondax / filecoin-solidity

Filecoin Solidity API Library
Apache License 2.0
94 stars 43 forks source link

failing test init_tests #303

Closed snissn closed 1 year ago

snissn commented 1 year ago

running cargo test in the testing folder outputs this test failure:

     Running tests/init.rs (target/debug/deps/init-fd20a5f3cf894226)

running 1 test
test init_tests ... FAILED

failures:

---- init_tests stdout ----
Testing solidity API
Calling init actor (EVM)
[TRACE] delegated address: Address { payload: Delegated(DelegatedAddress { namespace: 10, length: 20, buffer: [118, 196, 153, 190, 136, 33, 181, 185, 134, 1, 68, 210, 146, 255, 247, 40, 97, 27, 253, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] }) }
[TRACE] robust address: Address { payload: Actor([179, 152, 63, 197, 60, 234, 37, 74, 66, 53, 75, 140, 66, 70, 3, 8, 241, 171, 25, 86]) }
Calling `exec`
[tests/init.rs:67] hex::encode(multisig_cid.to_bytes()) = "0155a0e402200b4958afb388c11624b7005f64ccd56658fc622d17309a542a036ec51307aa01"
[INFO] Call Precompile:
    address: fe00000000000000000000000000000000000005
    context: PrecompileContext { call_type: DelegateCall, gas_limit: 978951674, value: 0 }
    input: 0000000000000000000000000000000000000000000000000000000004d765d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000005f82d82a5827000155a0e402200b4958afb388c11624b7005f64ccd56658fc622d17309a542a036ec51307aa015831848255011eaf1c8a4bbfeeb0870b1745b1f57503470b71165501dfe49184d46adc8f89d44638beb45f78fcad259001000000
thread 'init_tests' panicked at 'assertion failed: `(left == right)`
  left: `33`,
 right: `0`', tests/init.rs:91:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
    init_tests

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.37s

error: test failed, to rerun pass `--test init`

:link: zboto Link

emmanuelm41 commented 1 year ago

@snissn you can check CI and see that everything is passing. Are you actually doing things as we do on CI? Which builtin actors commit are you using? Same as we do? (It is a GitHub submodule)

emmanuelm41 commented 1 year ago

@snissn I just ran it locally again and it works.