fix tests

This commit is contained in:
mpostma 2021-03-10 14:47:04 +01:00
parent 0cd8869349
commit a56e8c1a0c
No known key found for this signature in database
GPG key ID: CBC8A7C1D7A28C3A
4 changed files with 17 additions and 9 deletions

View file

@ -2,7 +2,7 @@ use std::time::Duration;
use actix_web::http::StatusCode;
use serde_json::{json, Value};
use tokio::time::delay_for;
use tokio::time::sleep;
use super::service::Service;
@ -79,7 +79,7 @@ impl Index<'_> {
return response;
}
delay_for(Duration::from_secs(1)).await;
sleep(Duration::from_secs(1)).await;
}
panic!("Timeout waiting for update id");
}