Skip to content

Commit

Permalink
remove confusing test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Feb 4, 2025
1 parent c586b33 commit 4eb7806
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 9 additions & 2 deletions crates/astria-conductor/src/executor/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,17 @@ pub(super) fn map_sequencer_height_to_rollup_height(
#[cfg(test)]
mod tests {
use super::*;
use crate::test_utils::test_rollup_state;
use crate::test_utils::{
make_commitment_state,
make_genesis_info,
make_rollup_state,
};

fn make_channel() -> (StateSender, StateReceiver) {
super::channel(test_rollup_state())
super::channel(make_rollup_state(
make_genesis_info(),
make_commitment_state(),
))
}

#[test]
Expand Down
4 changes: 0 additions & 4 deletions crates/astria-conductor/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,3 @@ pub(crate) fn make_rollup_state(
astria_core::execution::v1::CommitmentState::try_from_raw(commitment_state).unwrap();
State::try_from_genesis_info_and_commitment_state(genesis_info, commitment_state).unwrap()
}

pub(crate) fn test_rollup_state() -> State {
make_rollup_state(make_genesis_info(), make_commitment_state())
}

0 comments on commit 4eb7806

Please sign in to comment.