@@ -2263,7 +2263,7 @@ fn end_of_tenure() {
2263
2263
) ;
2264
2264
2265
2265
info ! ( "------------------------- Test Block Validation Stalled -------------------------" ) ;
2266
- TEST_VALIDATE_STALL . lock ( ) . unwrap ( ) . replace ( true ) ;
2266
+ TEST_VALIDATE_STALL . set ( true ) ;
2267
2267
2268
2268
let proposals_before = signer_test
2269
2269
. running_nodes
@@ -2335,7 +2335,7 @@ fn end_of_tenure() {
2335
2335
2336
2336
info ! ( "Unpausing block validation and waiting for block to be processed" ) ;
2337
2337
// Disable the stall and wait for the block to be processed
2338
- TEST_VALIDATE_STALL . lock ( ) . unwrap ( ) . replace ( false ) ;
2338
+ TEST_VALIDATE_STALL . set ( false ) ;
2339
2339
wait_for ( short_timeout. as_secs ( ) , || {
2340
2340
let processed_now = get_chain_info ( & signer_test. running_nodes . conf ) . stacks_tip_height ;
2341
2341
Ok ( processed_now > blocks_before)
@@ -2831,7 +2831,7 @@ fn stx_transfers_dont_effect_idle_timeout() {
2831
2831
signer_test. boot_to_epoch_3 ( ) ;
2832
2832
2833
2833
// Add a delay to the block validation process
2834
- TEST_VALIDATE_DELAY_DURATION_SECS . lock ( ) . unwrap ( ) . replace ( 5 ) ;
2834
+ TEST_VALIDATE_DELAY_DURATION_SECS . set ( 5 ) ;
2835
2835
2836
2836
let info_before = signer_test. get_peer_info ( ) ;
2837
2837
let blocks_before = signer_test. running_nodes . nakamoto_blocks_mined . get ( ) ;
@@ -2975,7 +2975,7 @@ fn idle_tenure_extend_active_mining() {
2975
2975
signer_test. boot_to_epoch_3 ( ) ;
2976
2976
2977
2977
// Add a delay to the block validation process
2978
- TEST_VALIDATE_DELAY_DURATION_SECS . lock ( ) . unwrap ( ) . replace ( 3 ) ;
2978
+ TEST_VALIDATE_DELAY_DURATION_SECS . set ( 3 ) ;
2979
2979
2980
2980
signer_test. mine_nakamoto_block ( Duration :: from_secs ( 30 ) , true ) ;
2981
2981
@@ -7598,7 +7598,7 @@ fn block_validation_response_timeout() {
7598
7598
info ! ( "------------------------- Test Mine and Verify Confirmed Nakamoto Block -------------------------" ) ;
7599
7599
signer_test. mine_and_verify_confirmed_naka_block ( timeout, num_signers, true ) ;
7600
7600
info ! ( "------------------------- Test Block Validation Stalled -------------------------" ) ;
7601
- TEST_VALIDATE_STALL . lock ( ) . unwrap ( ) . replace ( true ) ;
7601
+ TEST_VALIDATE_STALL . set ( true ) ;
7602
7602
let validation_stall_start = Instant :: now ( ) ;
7603
7603
7604
7604
let proposals_before = signer_test
@@ -7700,7 +7700,7 @@ fn block_validation_response_timeout() {
7700
7700
let info_before = info_after;
7701
7701
info ! ( "Unpausing block validation" ) ;
7702
7702
// Disable the stall and wait for the block to be processed successfully
7703
- TEST_VALIDATE_STALL . lock ( ) . unwrap ( ) . replace ( false ) ;
7703
+ TEST_VALIDATE_STALL . set ( false ) ;
7704
7704
wait_for ( 30 , || {
7705
7705
let info = get_chain_info ( & signer_test. running_nodes . conf ) ;
7706
7706
Ok ( info. stacks_tip_height > info_before. stacks_tip_height )
@@ -7770,10 +7770,7 @@ fn block_validation_pending_table() {
7770
7770
"db_path" => db_path. clone( ) . to_str( ) ,
7771
7771
) ;
7772
7772
signer_test. mine_and_verify_confirmed_naka_block ( timeout, num_signers, true ) ;
7773
- TEST_VALIDATE_DELAY_DURATION_SECS
7774
- . lock ( )
7775
- . unwrap ( )
7776
- . replace ( 30 ) ;
7773
+ TEST_VALIDATE_DELAY_DURATION_SECS . set ( 30 ) ;
7777
7774
7778
7775
let signer_db = SignerDb :: new ( db_path) . unwrap ( ) ;
7779
7776
@@ -7853,7 +7850,7 @@ fn block_validation_pending_table() {
7853
7850
info ! ( "----- Waiting for pending block validation to be submitted -----" ) ;
7854
7851
7855
7852
// Set the delay to 0 so that the block validation finishes quickly
7856
- * TEST_VALIDATE_DELAY_DURATION_SECS . lock ( ) . unwrap ( ) = None ;
7853
+ TEST_VALIDATE_DELAY_DURATION_SECS . set ( 0 ) ;
7857
7854
7858
7855
wait_for ( 30 , || {
7859
7856
let proposal_responses = test_observer:: get_proposal_responses ( ) ;
0 commit comments