Skip to content

Commit

Permalink
fix(derive): channel bank tests
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Apr 4, 2024
1 parent 8c4f253 commit df76da5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/derive/src/stages/channel_bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,12 @@ mod tests {

#[test]
fn test_ingest_invalid_frame() {
let traversal = new_test_traversal(false, false);
let traversal = new_test_traversal(vec![], vec![]);
let dap = TestDAP::default();
let retrieval = L1Retrieval::new(traversal, dap);
let frame_queue = FrameQueue::new(retrieval);
let mut channel_bank = ChannelBank::new(RollupConfig::default(), frame_queue);
let retrieval = L1Retrieval::new(traversal, dap, TestTelemetry::new());
let frame_queue = FrameQueue::new(retrieval, TestTelemetry::new());
let mut channel_bank =
ChannelBank::new(Arc::new(RollupConfig::default()), frame_queue, TestTelemetry::new());
let frame = Frame { id: [0xFF; 16], ..Default::default() };
assert_eq!(channel_bank.size(), 0);
assert!(channel_bank.channels.is_empty());
Expand Down

0 comments on commit df76da5

Please sign in to comment.