Skip to content

Commit

Permalink
Fix CI on soft batch save test (#294)
Browse files Browse the repository at this point in the history
* Init

* Add test

* Lint fix

* PR Fixes

* Change name

* Add execute blocks

* Increase sync time

* Init second full node before execute blocks

* Make it 10
  • Loading branch information
otaliptus authored Mar 25, 2024
1 parent a2edd46 commit 2661f64
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/demo-rollup/tests/e2e/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ async fn test_soft_batch_save() -> Result<(), anyhow::Error> {
let full_node_port = full_node_port_rx.await.unwrap();
let full_node_test_client = make_test_client(full_node_port).await;

let _ = execute_blocks(&seq_test_client, &full_node_test_client).await;

sleep(Duration::from_secs(10)).await;

let (full_node_port_tx_2, full_node_port_rx_2) = tokio::sync::oneshot::channel();

let full_node_task_2 = tokio::spawn(async move {
Expand All @@ -164,7 +160,9 @@ async fn test_soft_batch_save() -> Result<(), anyhow::Error> {
let full_node_port_2 = full_node_port_rx_2.await.unwrap();
let full_node_test_client_2 = make_test_client(full_node_port_2).await;

sleep(Duration::from_secs(20)).await;
let _ = execute_blocks(&seq_test_client, &full_node_test_client).await;

sleep(Duration::from_secs(10)).await;

let seq_block = seq_test_client
.eth_get_block_by_number(Some(BlockNumberOrTag::Latest))
Expand Down

0 comments on commit 2661f64

Please sign in to comment.