fix(swarm-test): add biased to tokio::select for non-random behavior

This commit is contained in:
Addy Bryant 2022-03-18 12:14:33 -04:00 committed by Joonas Koivunen
parent 6c6fc3d28b
commit 77291ee213

View File

@ -448,6 +448,8 @@ mod tests {
loop { loop {
tokio::select! { tokio::select! {
biased;
_ = (&mut swarm1).next() => {}, _ = (&mut swarm1).next() => {},
_ = (&mut swarm2).next() => {}, _ = (&mut swarm2).next() => {},
res = (&mut sub) => { res = (&mut sub) => {