Skip to content

Commit f050e4a

Browse files
committed
fix
1 parent ad103e4 commit f050e4a

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

examples/demo-rollup/tests/replica/recovery.rs

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,6 @@ async fn test_db_elected_leader_recovery_replica_keeps_running() {
3131
let token_id = config_gas_token_id();
3232
let receiver_addr = random_address();
3333

34-
let tx = build_transfer_token_tx::<S>(
35-
&key_and_address.private_key,
36-
token_id,
37-
receiver_addr,
38-
AMOUNT,
39-
0,
40-
);
41-
42-
{
43-
let mut event_subscription = replica
44-
.api_client()
45-
.subscribe_to_events_with_filter("Bank/*")
46-
.await
47-
.unwrap();
48-
49-
leader.send_tx_to_sequencer(&tx).await.unwrap();
50-
wait_for_all_events_with_timeout(Duration::from_millis(50), 1, &mut event_subscription)
51-
.await;
52-
drop(event_subscription);
53-
}
54-
5534
// Pause only the leader's update_state loop to prevent batch production
5635
leader.pause_preferred_batches_for_node().await;
5736

@@ -100,7 +79,7 @@ async fn test_db_elected_leader_recovery_replica_keeps_running() {
10079
token_id,
10180
receiver_addr,
10281
AMOUNT,
103-
1,
82+
0,
10483
);
10584
leader.send_tx_to_sequencer(&tx).await.unwrap();
10685

@@ -110,7 +89,7 @@ async fn test_db_elected_leader_recovery_replica_keeps_running() {
11089
.await
11190
.unwrap();
11291

113-
wait_for_all_events_with_timeout(Duration::from_millis(500), 1, &mut event_subscription).await;
92+
wait_for_all_events_with_timeout(Duration::from_millis(500), 0, &mut event_subscription).await;
11493

11594
replica.shutdown().await.unwrap();
11695
leader.shutdown().await.unwrap();

0 commit comments

Comments
 (0)