Skip to content

Restore Unit Tests #1120

@0xmovses

Description

@0xmovses

Some of our unit tests are failing, these may have failed during war room efforts last week. We tested instead with load e2e tests, test implementation was updated to keep up with latest changes on Thursday, but subsequent changes likely broke the tests.

  1. Inside the Nix Shell run:
cargo test \
            -p maptos-opt-executor \
            -p memseq \
            -p move-rocks \
            -p movement-types \
            -p movement-config \
            -p movement-da-util \
            -p movement-signer-test

Output:

test executor::execution::tests::test_revert_block_head_to ... ok
test gc_account_sequence_number::test::test_gc_removes_some_not_all ... ok
test gc_account_sequence_number::test::test_gc ... ok
test gc_account_sequence_number::test::test_inserts ... ok
test gc_account_sequence_number::test::test_removes ... ok
test tests::test_sign_transaction_with_hashi_corp_vault_executes ... FAILED
test tests::test_sign_transaction_with_hashi_corp_vault_includes_in_block ... FAILED
test executor::execution::tests::test_execute_block_state_get_api ... FAILED
test service::tests::test_pipe_mempool_while_server_running ... FAILED
test executor::execution::tests::test_execute_block ... FAILED
test background::transaction_pipe::tests::test_sequence_number_too_old ... FAILED
test background::transaction_pipe::tests::test_pipe_mempool ... FAILED
test background::transaction_pipe::tests::test_repeated_pipe_mempool_from_api ... FAILED
test background::transaction_pipe::tests::test_pipe_mempool_from_api ... FAILED
test background::transaction_pipe::tests::test_pipe_mempool_cancellation ... FAILED
test background::transaction_pipe::tests::test_cannot_submit_too_new ... FAILED
test background::transaction_pipe::tests::test_pipe_mempool_with_duplicate_transaction ... FAILED
test executor::execution::tests::test_execute_block_state_db ... ok

Separate tasks

  • Fix the hashi_corp tests
    • test tests::test_sign_transaction_with_hashi_corp_vault_executes
    • test tests::test_sign_transaction_with_hashi_corp_vault_includes_in_block
  • Fix the transaction_pipe_tests
  • And fix the last two tests:
    • test executor::execution::tests::test_execute_block_state_get_api
    • test service::tests::test_pipe_mempool_while_server_running

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions