mirror of https://github.com/fafhrd91/actix-web
fix typos
This commit is contained in:
parent
5fdcd4cca6
commit
4532aaa163
|
@ -354,7 +354,7 @@ mod tests {
|
||||||
// Ensure the task will drop eventually
|
// Ensure the task will drop eventually
|
||||||
let mut times = 0;
|
let mut times = 0;
|
||||||
while !notify_on_drop::is_dropped() {
|
while !notify_on_drop::is_dropped() {
|
||||||
sleep(Duartion::from_millis(100)).await;
|
sleep(Duration::from_millis(100)).await;
|
||||||
times += 1;
|
times += 1;
|
||||||
assert!(times < 10, "Timeout waiting for task drop");
|
assert!(times < 10, "Timeout waiting for task drop");
|
||||||
}
|
}
|
||||||
|
@ -383,7 +383,7 @@ mod tests {
|
||||||
// Ensure the task will drop eventually
|
// Ensure the task will drop eventually
|
||||||
let mut times = 0;
|
let mut times = 0;
|
||||||
while !notify_on_drop::is_dropped() {
|
while !notify_on_drop::is_dropped() {
|
||||||
sleep(Duartion::from_millis(100)).await;
|
sleep(Duration::from_millis(100)).await;
|
||||||
times += 1;
|
times += 1;
|
||||||
assert!(times < 10, "Timeout waiting for task drop");
|
assert!(times < 10, "Timeout waiting for task drop");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue