Skip to content

Commit

Permalink
fix(conductor): fix flaky restart test (#1575)
Browse files Browse the repository at this point in the history
## Summary
Fixed flaky conductor restart test.

## Background
`soft_and_firm::conductor_restart_on_permission_denied` would sometimes
fail due to receiving the firm block first.

## Changes
- Added short delay to firm block response so the conductor will always
receive the soft block first.

## Testing
Test now passing.

## Related Issues
closes #1566
  • Loading branch information
ethanoroshiba authored Sep 27, 2024
1 parent 3bf4652 commit 790af57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/astria-conductor/tests/blackbox/soft_and_firm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ async fn conductor_restarts_on_permission_denied() {
test_conductor,
celestia_height: 1,
sequencer_heights: [3],
delay: Some(Duration::from_millis(250))
);

mount_sequencer_commit!(
Expand Down

0 comments on commit 790af57

Please sign in to comment.