File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,11 @@ impl SignerTest<SpawnedSigner> {
311
311
let mut signer_index = 0 ;
312
312
let mut signature_index = 0 ;
313
313
let mut signing_keys = HashSet :: new ( ) ;
314
+ let start = Instant :: now ( ) ;
315
+ debug ! (
316
+ "Validating {} signatures against {num_signers} signers" ,
317
+ signature. len( )
318
+ ) ;
314
319
let validated = loop {
315
320
// Since we've already checked `signature.len()`, this means we've
316
321
// validated all the signatures in this loop
@@ -341,6 +346,11 @@ impl SignerTest<SpawnedSigner> {
341
346
signer_index += 1 ;
342
347
signature_index += 1 ;
343
348
}
349
+ // Shouldn't really ever timeout, but do this in case there is some sort of overflow/underflow happening.
350
+ assert ! (
351
+ start. elapsed( ) < timeout,
352
+ "Timed out waiting to confirm block signatures"
353
+ ) ;
344
354
} ;
345
355
346
356
assert ! ( validated) ;
You can’t perform that action at this time.
0 commit comments