Browse Source
Use the same number of payouts in the contract setup test
There should be at least one test that uses the same payout curve as the
production code.
debug-collab-settlement
Mariusz Klochowicz
3 years ago
No known key found for this signature in database
GPG Key ID: 470C865699C8D4D
1 changed files with
3 additions and
2 deletions
-
daemon/tests/harness/mod.rs
|
|
@ -9,6 +9,7 @@ use daemon::model::{Price, TakerId, Timestamp, Usd}; |
|
|
|
use daemon::seed::Seed; |
|
|
|
use daemon::{ |
|
|
|
db, maker_cfd, maker_inc_connections, projection, taker_cfd, MakerActorSystem, Tasks, |
|
|
|
HEARTBEAT_INTERVAL, N_PAYOUTS, |
|
|
|
}; |
|
|
|
use rust_decimal_macros::dec; |
|
|
|
use sqlx::SqlitePool; |
|
|
@ -30,8 +31,8 @@ pub mod flow; |
|
|
|
pub mod maia; |
|
|
|
pub mod mocks; |
|
|
|
|
|
|
|
pub const HEARTBEAT_INTERVAL_FOR_TEST: Duration = Duration::from_secs(2); |
|
|
|
const N_PAYOUTS_FOR_TEST: usize = 5; |
|
|
|
pub const HEARTBEAT_INTERVAL_FOR_TEST: Duration = HEARTBEAT_INTERVAL; |
|
|
|
const N_PAYOUTS_FOR_TEST: usize = N_PAYOUTS; |
|
|
|
|
|
|
|
fn oracle_pk() -> schnorrsig::PublicKey { |
|
|
|
schnorrsig::PublicKey::from_str( |
|
|
|