From 4e8026ee4f7e7c406d26ab1e97bbfea1dac5540b Mon Sep 17 00:00:00 2001 From: Mariusz Klochowicz Date: Mon, 13 Dec 2021 13:43:15 +1030 Subject: [PATCH] Use the same settlement interval in tests as in production This hardcoded value got out of sync recently --- daemon/tests/harness/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/tests/harness/mod.rs b/daemon/tests/harness/mod.rs index 745fd59..6ed29dc 100644 --- a/daemon/tests/harness/mod.rs +++ b/daemon/tests/harness/mod.rs @@ -24,6 +24,7 @@ use daemon::MakerActorSystem; use daemon::Tasks; use daemon::HEARTBEAT_INTERVAL; use daemon::N_PAYOUTS; +use daemon::SETTLEMENT_INTERVAL; use rust_decimal_macros::dec; use sqlx::SqlitePool; use std::net::SocketAddr; @@ -149,7 +150,7 @@ impl Maker { let (wallet_addr, wallet_fut) = wallet.create(None).run(); tasks.add(wallet_fut); - let settlement_interval = time::Duration::hours(24); + let settlement_interval = SETTLEMENT_INTERVAL; let (identity_pk, identity_sk) = config.seed.derive_identity();