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 {
|
loop {
|
||||||
tokio::select! {
|
tokio::select! {
|
||||||
|
biased;
|
||||||
|
|
||||||
_ = (&mut swarm1).next() => {},
|
_ = (&mut swarm1).next() => {},
|
||||||
_ = (&mut swarm2).next() => {},
|
_ = (&mut swarm2).next() => {},
|
||||||
res = (&mut sub) => {
|
res = (&mut sub) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user