Skip to content

Failing unit tests #22

@raspbeguy

Description

@raspbeguy

On Alpine Linux:

running 27 tests
test fc::history::tests::test_clear_history ... ok
test fc::history::tests::test_command_entry_creation ... ok
test fc::history::tests::test_command_entry_modification ... ok
test fc::history::tests::test_command_entry_with_output ... ok
test fc::history::tests::test_command_filtering_by_exit_code ... ok
test fc::history::tests::test_command_history_with_output ... ok
test fc::history::tests::test_command_history_wrap_around ... ok
test fc::history::tests::test_command_history_basic ... ok
test fc::history::tests::test_export_as_text ... ok
test fc::history::tests::test_find_commands ... ok
test fc::history::tests::test_get_last_commands ... ok
test fc::history::tests::test_history_stats ... ok
test fc::tests::tests::test_messagepack_serialization ... ok
test fc::tests::tests::test_server_creation ... ok
test shell::pty::tests::test_create_pty_pair ... ok
test shell::pty::tests::test_multiple_pty_creation ... ok
test shell::pty::tests::test_pty_manager_creation ... ok
test shell::pty::tests::test_pty_pair_communication ... ok
test shell::pty::tests::test_session_id_format ... ok
test shell::pty::tests::test_unique_session_ids ... ok
test fc::tests::tests::test_session_exists ... ok
test fc::tests::tests::test_binary_data_efficiency ... ok
test fc::tests::tests::test_mismatched_post_command ... ok
test fc::tests::tests::test_pre_post_command_flow ... ok
test fc::tests::tests::test_status_response ... ok
test fc::tests::tests::test_clear_history ... FAILED
test fc::tests::tests::test_get_last_commands ... ok

failures:

---- fc::tests::tests::test_clear_history stdout ----

thread 'fc::tests::tests::test_clear_history' panicked at /home/alpine/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ringbuffer-0.16.0/src/with_alloc/alloc_ringbuffer.rs:323:9:
assertion `left != right` failed: Capacity must be greater than 0
  left: 0
 right: 0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    fc::tests::tests::test_clear_history

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

error: test failed, to rerun pass `-p shai --bin shai`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions