Skip to content

Commit 1467af0

Browse files
Renaming threshold found
1 parent e020e62 commit 1467af0

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

crates/contract/src/api/governance.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ mod tests {
166166
#[test]
167167
fn test_vote_new_parameters_succeeds_with_default_tee_status() {
168168
let (mut contract, participants, first_participant_id) = setup_tee_test_contract(3, 2);
169-
let threshold = GovernanceThreshold::new(2);
169+
let governance_threshold = GovernanceThreshold::new(2);
170170

171171
// No attestations submitted - all participants have default TEE status None
172172
let result = setup_voting_context_and_vote(
173173
&mut contract,
174174
&first_participant_id,
175175
participants,
176-
threshold,
176+
governance_threshold,
177177
);
178178
assert!(
179179
result.is_ok(),
@@ -188,7 +188,7 @@ mod tests {
188188
#[test]
189189
fn test_vote_new_parameters_succeeds_when_all_participants_have_valid_tee() {
190190
let (mut contract, participants, first_participant_id) = setup_tee_test_contract(3, 2);
191-
let threshold = GovernanceThreshold::new(2);
191+
let governance_threshold = GovernanceThreshold::new(2);
192192

193193
// Submit valid attestations for all participants
194194
submit_valid_attestations(&mut contract, &participants, &[0, 1, 2]);
@@ -198,7 +198,7 @@ mod tests {
198198
&mut contract,
199199
&first_participant_id,
200200
participants,
201-
threshold,
201+
governance_threshold,
202202
);
203203
assert!(
204204
result.is_ok(),
@@ -215,7 +215,7 @@ mod tests {
215215
#[test]
216216
fn test_vote_new_parameters_succeeds_after_invalid_attestation_rejected() {
217217
let (mut contract, participants, first_participant_id) = setup_tee_test_contract(4, 3);
218-
let threshold = GovernanceThreshold::new(3);
218+
let governance_threshold = GovernanceThreshold::new(3);
219219

220220
// Submit valid attestations for first 3 participants
221221
submit_valid_attestations(&mut contract, &participants, &[0, 1, 2]);
@@ -245,7 +245,7 @@ mod tests {
245245
&mut contract,
246246
&first_participant_id,
247247
participants,
248-
threshold,
248+
governance_threshold,
249249
);
250250
assert!(
251251
result.is_ok(),
@@ -459,9 +459,9 @@ mod tests {
459459
// Given: a participant whose vote is forwarded through another contract,
460460
// so signer_account_id (the participant) != predecessor_account_id (the forwarder).
461461
let (mut contract, participants, first_participant_id) = setup_tee_test_contract(3, 2);
462-
let threshold = GovernanceThreshold::new(2);
462+
let governance_threshold = GovernanceThreshold::new(2);
463463
let proposal = ProposedGovernanceThresholdParameters::new(
464-
GovernanceThresholdParameters::new(participants, threshold).unwrap(),
464+
GovernanceThresholdParameters::new(participants, governance_threshold).unwrap(),
465465
BTreeMap::new(),
466466
);
467467

0 commit comments

Comments
 (0)