Skip to content

Commit 3686edc

Browse files
committed
fix tests
1 parent 470bf36 commit 3686edc

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

crates/op-rbuilder/src/tests/data_availability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async fn block_fill(rbuilder: LocalInstance) -> eyre::Result<()> {
105105
"unfit tx should not be in block"
106106
);
107107
assert!(
108-
driver.latest_full().await?.transactions.len() == 4,
108+
driver.latest_full().await?.transactions.len() == 7,
109109
"builder + deposit + 2 valid txs should be in the block"
110110
);
111111

crates/op-rbuilder/src/tests/revert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ async fn monitor_transaction_gc(rbuilder: LocalInstance) -> eyre::Result<()> {
5050
}
5151

5252
if_flashblocks! {
53-
// flashblocks should include three transactions (deposit + 2 builder txs)
54-
assert_eq!(generated_block.transactions.len(), 3);
53+
// flashblocks should include five transactions (deposit + 4 builder txs)
54+
assert_eq!(generated_block.transactions.len(), 5);
5555
}
5656

5757
// since we created the 10 transactions with increasing block ranges, as we generate blocks

crates/op-rbuilder/src/tests/smoke.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ async fn chain_produces_blocks(rbuilder: LocalInstance) -> eyre::Result<()> {
4141
}
4242

4343
if_flashblocks! {
44-
// in flashblocks we add an additional transaction on the first
45-
// flashblocks and then one on the last flashblock
44+
// in flashblocks we add an additional transaction each flashblock
4645
assert_eq!(
4746
transactions.len(),
48-
3,
49-
"Empty blocks should have exactly three transactions"
47+
5,
48+
"Empty blocks should have exactly four transactions"
5049
);
5150
}
5251
}
@@ -81,14 +80,12 @@ async fn chain_produces_blocks(rbuilder: LocalInstance) -> eyre::Result<()> {
8180
}
8281

8382
if_flashblocks! {
84-
// in flashblocks we add an additional transaction on the first
85-
// flashblocks and then one on the last flashblock, so it will have
86-
// one more transaction than the standard builder
83+
// in flashblocks we add an additional transaction each flashblock
8784
assert_eq!(
8885
txs.len(),
89-
3 + count,
86+
5 + count,
9087
"Block should have {} transactions",
91-
3 + count
88+
5 + count
9289
);
9390
}
9491

0 commit comments

Comments
 (0)