Fix build of tests
This commit is contained in:
parent
8a9713b5e1
commit
651f1b99c5
@ -577,8 +577,9 @@ mod tests {
|
||||
&ConsentDetails::default_for(&ConsentType::Fight),
|
||||
&None,
|
||||
&Some(Consent {
|
||||
expires: Some(chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7))
|
||||
.unwrap(),
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent::default()),
|
||||
..Consent::default()
|
||||
}),
|
||||
@ -608,8 +609,9 @@ mod tests {
|
||||
..ConsentDetails::default_for(&ConsentType::Fight)
|
||||
},
|
||||
&Some(Consent {
|
||||
expires: Some(chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7))
|
||||
.unwrap(),
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent {
|
||||
status: ConsentStatus::Active,
|
||||
..FightConsent::default()
|
||||
@ -617,8 +619,9 @@ mod tests {
|
||||
..Consent::default()
|
||||
}),
|
||||
&Some(Consent {
|
||||
expires: Some(chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7))
|
||||
.unwrap(),
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent {
|
||||
status: ConsentStatus::Active,
|
||||
..FightConsent::default()
|
||||
@ -667,8 +670,9 @@ mod tests {
|
||||
..ConsentDetails::default_for(&ConsentType::Fight)
|
||||
},
|
||||
&Some(Consent {
|
||||
expires: Some(chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7))
|
||||
.unwrap(),
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent {
|
||||
status: ConsentStatus::Active,
|
||||
..FightConsent::default()
|
||||
@ -676,15 +680,16 @@ mod tests {
|
||||
..Consent::default()
|
||||
}),
|
||||
&Some(Consent {
|
||||
expires: Some(chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7))
|
||||
.unwrap(),
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent {
|
||||
status: ConsentStatus::Active,
|
||||
pending_change: Some(Box::new(Consent {
|
||||
expires: Some(
|
||||
chrono::Utc::now() + chrono::TimeDelta::try_minutes(60 * 24 * 7),
|
||||
)
|
||||
.unwrap(),
|
||||
chrono::Utc::now()
|
||||
+ chrono::TimeDelta::try_minutes(60 * 24 * 7).unwrap(),
|
||||
),
|
||||
fight_consent: Some(FightConsent {
|
||||
freely_revoke: true,
|
||||
..FightConsent::default()
|
||||
|
Loading…
Reference in New Issue
Block a user