initiative-sh / initiative.sh

A web-based command line for game masters
https://initiative.sh/
GNU General Public License v3.0
44 stars 4 forks source link

Import integration test is flaky #321

Open MikkelPaulson opened 1 year ago

MikkelPaulson commented 1 year ago

The integration::storage::export_import::import_event test (in core/tests/integration) sometimes fails the following assertion:

failures:

---- integration::storage::export_import::import_event stdout ---- thread 'integration::storage::export_import::import_event' panicked at 'assertion failed: matches!(event, Some(Event :: Import))', core/tests/integration/storage/export_import/mod.rs:84:5 error: test failed, to rerun pass -p initiative-core --test integration_tests note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

failures: integration::storage::export_import::import_event

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

Error: Process completed with exit code 101.

It seems like this happens more on GitHub Actions than it does locally, although I have seen it when running in my local environment as well.