Skip to content

Commit

Permalink
fix(derive): extend attributes queue unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Apr 4, 2024
1 parent 2adbaf5 commit d1470b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/derive/src/stages/attributes_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ mod tests {
// If we load the batch, we should get the last in span.
// But it won't take it so it will be available in the next_attributes call.
let _ = aq.load_batch(L2BlockInfo::default()).await.unwrap();
assert!(aq.is_last_in_span);
assert!(aq.batch.is_some());
// This should successfully construct the next payload attributes.
// It should also reset the last in span flag and clear the batch.
let attributes = aq.next_attributes(L2BlockInfo::default()).await.unwrap();
Expand Down

0 comments on commit d1470b0

Please sign in to comment.