io: fix wait operation on mock (#5554)

This commit is contained in:
devensiv
2023-03-19 12:35:39 +00:00
committed by GitHub
parent 17cc283f58
commit 4cd4b02389
2 changed files with 65 additions and 0 deletions
+2
View File
@@ -310,6 +310,8 @@ impl Inner {
if now < until {
break;
} else {
self.waiting = None;
}
} else {
self.waiting = Some(Instant::now() + *dur);