Skip to content

Commit d8eb80d

Browse files
committed
primitives - prep_db - apply the same conditions as in the JS impl for the Dummy Channel ChannelSpec
1 parent fb0ec9b commit d8eb80d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

primitives/src/util/tests/prep_db.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use crate::{
2+
channel::{Pricing, PricingBounds},
23
BigNum, Channel, ChannelId, ChannelSpec, EventSubmission, SpecValidators, ValidatorDesc,
34
ValidatorId,
45
};
@@ -69,7 +70,7 @@ lazy_static! {
6970
title: None,
7071
validators: SpecValidators::new(DUMMY_VALIDATOR_LEADER.clone(), DUMMY_VALIDATOR_FOLLOWER.clone()),
7172
max_per_impression: 10.into(),
72-
min_per_impression: 10.into(),
73+
min_per_impression: 1.into(),
7374
targeting: vec![],
7475
min_targeting_score: None,
7576
event_submission: Some(EventSubmission { allow: vec![] }),
@@ -79,7 +80,7 @@ lazy_static! {
7980
nonce: Some(nonce),
8081
withdraw_period_start: Utc.timestamp_millis(4_073_414_400_000),
8182
ad_units: vec![],
82-
pricing_bounds: None,
83+
pricing_bounds: Some(PricingBounds {impression: None, click: Some(Pricing { max: 0.into(), min: 0.into()})}),
8384
},
8485
}
8586
};

0 commit comments

Comments
 (0)