fix compile issues for tests and use serial_test crate

This commit is contained in:
Lorenzo Tucci 2023-09-01 12:31:39 +03:00
parent 9b08f71bb8
commit ccf9b0c31f
No known key found for this signature in database
GPG key ID: D98C4FA2CDF590A0
5 changed files with 24 additions and 34 deletions

View file

@ -90,8 +90,8 @@ impl SwapLock {
/// # Notes
/// The 50ms polling interval is considered negligible overhead compared to the typical time required to suspend ongoing swap processes.
pub async fn send_suspend_signal(&self) -> Result<(), Error> {
const TIMEOUT: i32 = 10_000;
const INTERVAL: i32 = 50;
const TIMEOUT: u64 = 10_000;
const INTERVAL: u64 = 50;
let _ = self.suspension_trigger.send(())?;