-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
L1-271: Improve flaky session map test (#1776)
# Description Recently failed there: https://github.com/Cardinal-Cryptography/aleph-node/actions/runs/9736643972/job/26867555923. Reason: ``` ---- session_map::tests::prunes_old_sessions stdout ---- thread 'session_map::tests::prunes_old_sessions' panicked at finality-aleph/src/session_map.rs:776:13: assertion `left == right` failed: Session 0 should be pruned ``` Replaced some delays with `handle.await.unwrap()` and `sender` drop, as such a drop will cause `SessionMapUpdater` to finish. ## Type of change Please delete options that are not relevant. - Bug fix (non-breaking change which fixes an issue) [non-prod code] # Checklist:
- Loading branch information
Showing
2 changed files
with
19 additions
and
128 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters