File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -3096,18 +3096,15 @@ fn tenure_extend_with_other_transactions() {
3096
3096
)
3097
3097
. expect ( "Timed out waiting for a block with a tenure extend" ) ;
3098
3098
let transactions = block[ "transactions" ] . as_array ( ) . unwrap ( ) ;
3099
- assert_eq ! (
3100
- transactions. len( ) ,
3101
- 2 ,
3102
- "Expected 2 transactions in the block"
3103
- ) ;
3104
- let tx = transactions[ 1 ] . as_object ( ) . unwrap ( ) ;
3105
- let txid = tx[ "txid" ] . as_str ( ) . unwrap ( ) ;
3106
- assert_eq ! (
3107
- txid[ 2 ..] ,
3108
- to_find,
3109
- "Expected the transfer tx to be the second transaction in the block"
3110
- ) ;
3099
+ assert ! (
3100
+ transactions. len( ) > 1 ,
3101
+ "Expected at least 2 transactions in the block"
3102
+ ) ;
3103
+ assert ! ( transactions. iter( ) . any( |tx| {
3104
+ let tx = tx. as_object( ) . unwrap( ) ;
3105
+ let txid = tx[ "txid" ] . as_str( ) . unwrap( ) ;
3106
+ txid[ 2 ..] == to_find
3107
+ } ) , "Failed to find the transfer tx in the block" ) ;
3111
3108
signer_test. shutdown ( ) ;
3112
3109
}
3113
3110
You can’t perform that action at this time.
0 commit comments