fix(swarm-test): add biased to tokio::select for non-random behavior
This commit is contained in:
parent
6c6fc3d28b
commit
77291ee213
@ -448,6 +448,8 @@ mod tests {
|
||||
|
||||
loop {
|
||||
tokio::select! {
|
||||
biased;
|
||||
|
||||
_ = (&mut swarm1).next() => {},
|
||||
_ = (&mut swarm2).next() => {},
|
||||
res = (&mut sub) => {
|
||||
|
Loading…
Reference in New Issue
Block a user