Skip to content

Commit 9822ef1

Browse files
committed
test: attempt to fix signers::v0::signer_set_rollover() in CI
1 parent 9221646 commit 9822ef1

File tree

1 file changed

+1
-5
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+1
-5
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use libsigner::v0::messages::{
2626
BlockRejection, BlockResponse, MessageSlotID, MinerSlotID, RejectCode, SignerMessage,
2727
};
2828
use libsigner::{BlockProposal, SignerSession, StackerDBSession};
29-
use rand::RngCore;
3029
use stacks::address::AddressHashMode;
3130
use stacks::chainstate::burn::db::sortdb::SortitionDB;
3231
use stacks::chainstate::nakamoto::{NakamotoBlock, NakamotoBlockHeader, NakamotoChainState};
@@ -2850,11 +2849,8 @@ fn signer_set_rollover() {
28502849
initial_balances.push((sender_addr.clone(), (send_amt + send_fee) * 4));
28512850

28522851
let run_stamp = rand::random();
2853-
let mut rng = rand::thread_rng();
28542852

2855-
let mut buf = [0u8; 2];
2856-
rng.fill_bytes(&mut buf);
2857-
let rpc_port = u16::from_be_bytes(buf.try_into().unwrap()).saturating_add(1025) - 1; // use a non-privileged port between 1024 and 65534
2853+
let rpc_port = 51024;
28582854
let rpc_bind = format!("127.0.0.1:{}", rpc_port);
28592855

28602856
// Setup the new signers that will take over

0 commit comments

Comments
 (0)