Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshuawuyts committed Nov 14, 2022
1 parent 787e4dc commit 7d05b37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/future/race/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ mod test {
let res = [future::ready("hello"), future::ready("world")]
.race()
.await;
assert_eq!(res, "hello");
assert!(matches!(res, "hello" | "world"));
});
}
}
2 changes: 1 addition & 1 deletion src/future/race/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ mod test {
let res = vec![future::ready("hello"), future::ready("world")]
.race()
.await;
assert_eq!(res, "hello");
assert!(matches!(res, "hello" | "world"));
});
}
}

0 comments on commit 7d05b37

Please sign in to comment.