fix typos

This commit is contained in:
Ali MJ Al-Nasrawy 2021-07-10 00:26:59 +03:00
parent 5fdcd4cca6
commit 4532aaa163
1 changed files with 2 additions and 2 deletions

View File

@ -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");
} }