Skip to content

Commit

Permalink
set threshold unsupported tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CyonAlexRDX committed Nov 25, 2024
1 parent 7786445 commit 5fccf9a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/rules/src/roles_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,15 @@ mod tests {
test_duplicates_not_allowed(make(), list(), sample())
}

#[test]
fn set_threshold_is_unsupported() {
let mut sut = make();
assert_eq!(
sut.set_threshold(1),
MutRes::basic_violation(BasicViolation::RecoveryCannotSetThreshold)
);
}

#[test]
fn cannot_add_factors_to_threshold() {
let mut sut = make();
Expand Down Expand Up @@ -1136,6 +1145,15 @@ mod tests {
FactorSource::sample_device_babylon_other()
}

#[test]
fn set_threshold_is_unsupported() {
let mut sut = make();
assert_eq!(
sut.set_threshold(1),
MutRes::basic_violation(BasicViolation::ConfirmationCannotSetThreshold)
);
}

#[test]
fn allowed_as_first_and_only() {
// Arrange
Expand Down

0 comments on commit 5fccf9a

Please sign in to comment.