Skip to content

Commit 75f7325

Browse files
authored
Merge pull request #5264 from stacks-network/fix/exit-post-block-until-ok
Exit post_block_until_ok when testing feature is set OR is test
2 parents be3809e + d617fb3 commit 75f7325

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stacks-signer/src/client/stacks_client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,9 @@ impl StacksClient {
574574
return block_push_result;
575575
}
576576
Err(e) => {
577-
if cfg!(test) && start_time.elapsed() > Duration::from_secs(30) {
577+
if cfg!(any(test, feature = "testing"))
578+
&& start_time.elapsed() > Duration::from_secs(30)
579+
{
578580
panic!(
579581
"{log_fmt}: Timed out in test while pushing block to stacks node: {e}"
580582
);

0 commit comments

Comments
 (0)