Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 39fd779

Browse files
tests(client): fix flaky pool test (#220)
1 parent 24714a3 commit 39fd779

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/client/legacy/pool.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,8 @@ mod tests {
10081008

10091009
// Now wait passed the minimum interval more
10101010
tokio::time::sleep(Duration::from_millis(70)).await;
1011+
// Yield in case other task hasn't been able to run :shrug:
1012+
tokio::task::yield_now().await;
10111013

10121014
assert!(!pool.locked().idle.contains_key(&key));
10131015
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /