Skip to content

Commit f8408dc

Browse files
committed
fix(rust): Reduce runtime of excessively slow property tests
1 parent e6e3759 commit f8408dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rust/catalyst-voting/src/crypto/zk_dl_equality.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod tests {
7373

7474
use super::*;
7575

76-
#[proptest]
76+
#[proptest(cases = 10)]
7777
fn zk_dleq_test(e1: Scalar, e2: Scalar, dlog1: Scalar, dlog2: Scalar, randomness: Scalar) {
7878
let base_1 = GroupElement::GENERATOR.mul(&e1);
7979
let base_2 = GroupElement::GENERATOR.mul(&e2);

rust/catalyst-voting/src/crypto/zk_unit_vector/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ mod tests {
277277
ones == 1 && zeros == vector.len() - 1
278278
}
279279

280-
#[proptest]
280+
#[proptest(cases = 10)]
281281
fn zk_unit_vector_test(
282282
secret_key: Scalar, commitment_key: GroupElement,
283283
#[strategy(1..10_usize)] unit_vector_size: usize,
@@ -327,7 +327,7 @@ mod tests {
327327
));
328328
}
329329

330-
#[proptest]
330+
#[proptest(cases = 10)]
331331
fn not_a_unit_vector_test(
332332
secret_key: Scalar, commitment_key: GroupElement,
333333
#[any(size_range(1..10_usize).lift())] random_vector: Vec<Scalar>,

0 commit comments

Comments
 (0)