Skip to content

Commit c13e521

Browse files
committed
fix: disable relevant unit tests that assume 14 stacker signer slots
1 parent 631138f commit c13e521

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

libsigner/src/v1/messages.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,8 @@ mod test {
14481448

14491449
use super::{StacksMessageCodecExtensions, *};
14501450

1451-
#[test]
1451+
// This test is disabled because the last signer slot can't be introduced until after Nakamoto
1452+
// #[test]
14521453
fn signer_slots_count_is_sane() {
14531454
let slot_identifiers_len = MessageSlotID::ALL.len();
14541455
assert!(

stacks-signer/src/client/stacks_client.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ mod tests {
738738
};
739739
use rand::thread_rng;
740740
use rand_core::RngCore;
741-
use stacks_common::consts::{CHAIN_ID_TESTNET, SIGNER_SLOTS_PER_USER};
741+
use stacks_common::consts::CHAIN_ID_TESTNET;
742742
use wsts::curve::scalar::Scalar;
743743

744744
use super::*;
@@ -1121,9 +1121,13 @@ mod tests {
11211121

11221122
let signer_slots = mock.client.parse_signer_slots(value).unwrap();
11231123
assert_eq!(signer_slots.len(), 5);
1124+
1125+
/*
1126+
* This is disabled until the number of slots is again 14
11241127
signer_slots
11251128
.into_iter()
11261129
.for_each(|(_address, slots)| assert_eq!(slots, SIGNER_SLOTS_PER_USER as u128));
1130+
*/
11271131
}
11281132

11291133
#[test]

0 commit comments

Comments
 (0)