Make sure Troll Patrol has a negative report key on first day
This commit is contained in:
parent
bbf582078a
commit
18de3f58b0
|
@ -154,7 +154,7 @@ pub async fn main() {
|
|||
}
|
||||
|
||||
for i in 1..LEVEL_INTERVAL.len() - 2 {
|
||||
// Advance LA's time to tomorrow
|
||||
// Advance LA's time
|
||||
la_net_test
|
||||
.request(
|
||||
"/advancedays".to_string(),
|
||||
|
@ -163,7 +163,7 @@ pub async fn main() {
|
|||
.into(),
|
||||
)
|
||||
.await;
|
||||
// Advance simulated time to tomorrow
|
||||
// Advance simulated time
|
||||
set_simulated_date(get_date() + LEVEL_INTERVAL[i]);
|
||||
|
||||
for user in &mut users {
|
||||
|
@ -178,6 +178,21 @@ pub async fn main() {
|
|||
.await;
|
||||
}
|
||||
}
|
||||
|
||||
// Have Troll Patrol run its update process so we have a negative
|
||||
// report key for tomorrow
|
||||
tp_net_test.request("/update".to_string(), vec![]).await;
|
||||
|
||||
// Advance LA's time to tomorrow
|
||||
la_net_test
|
||||
.request(
|
||||
"/advancedays".to_string(),
|
||||
serde_json::to_string(&(1 as u16)).unwrap().into(),
|
||||
)
|
||||
.await;
|
||||
|
||||
// Advance simulated time to tomorrow
|
||||
increment_simulated_date();
|
||||
}
|
||||
|
||||
// Set up extra-infos server
|
||||
|
|
Loading…
Reference in New Issue