diff --git a/actix-http/src/config.rs b/actix-http/src/config.rs index 5d0060f79..6661e18f3 100644 --- a/actix-http/src/config.rs +++ b/actix-http/src/config.rs @@ -354,7 +354,7 @@ mod tests { // Ensure the task will drop eventually let mut times = 0; while !notify_on_drop::is_dropped() { - sleep(Duartion::from_millis(100)).await; + sleep(Duration::from_millis(100)).await; times += 1; assert!(times < 10, "Timeout waiting for task drop"); } @@ -383,7 +383,7 @@ mod tests { // Ensure the task will drop eventually let mut times = 0; while !notify_on_drop::is_dropped() { - sleep(Duartion::from_millis(100)).await; + sleep(Duration::from_millis(100)).await; times += 1; assert!(times < 10, "Timeout waiting for task drop"); }