From 47cba02fc7e22edc97a07669644ba2cb921c9f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 9 Dec 2022 12:21:33 +0100 Subject: [PATCH 1/2] test/core: run less cases on `update_epoch_after_its_duration` test --- core/src/ledger/storage/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/ledger/storage/mod.rs b/core/src/ledger/storage/mod.rs index 8285e58bab1..5d0befbaca7 100644 --- a/core/src/ledger/storage/mod.rs +++ b/core/src/ledger/storage/mod.rs @@ -1211,6 +1211,7 @@ pub mod testing { mod tests { use chrono::{TimeZone, Utc}; use proptest::prelude::*; + use proptest::test_runner::Config; use rust_decimal_macros::dec; use super::testing::*; @@ -1259,6 +1260,10 @@ mod tests { } proptest! { + #![proptest_config(Config { + cases: 10, + .. Config::default() + })] /// Test that: /// 1. When the minimum blocks have been created since the epoch /// start height and minimum time passed since the epoch start time, From c806cefb84db74338526176316c6b628a24c89d9 Mon Sep 17 00:00:00 2001 From: "Raymond E. Pasco" Date: Wed, 21 Dec 2022 08:31:47 -0500 Subject: [PATCH 2/2] changelog: add #876 --- .changelog/unreleased/testing/876-faster-epoch-test.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .changelog/unreleased/testing/876-faster-epoch-test.md diff --git a/.changelog/unreleased/testing/876-faster-epoch-test.md b/.changelog/unreleased/testing/876-faster-epoch-test.md new file mode 100644 index 00000000000..f387dee313b --- /dev/null +++ b/.changelog/unreleased/testing/876-faster-epoch-test.md @@ -0,0 +1,2 @@ +- Run fewer cases on update_epoch_after_its_duration, for a faster test suite. + ([#876](https://github.com/anoma/namada/pull/876)) \ No newline at end of file