File tree Expand file tree Collapse file tree 1 file changed +2
-23
lines changed
examples/demo-rollup/tests/replica Expand file tree Collapse file tree 1 file changed +2
-23
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments