rollup merge of #17686 : lucidd/fix
This commit is contained in:
commit
67717b61e6
@ -201,12 +201,13 @@ mod test {
|
||||
#[test]
|
||||
fn test_sendable_future() {
|
||||
let expected = "schlorf";
|
||||
let (tx, rx) = channel();
|
||||
let f = Future::spawn(proc() { expected });
|
||||
task::spawn(proc() {
|
||||
let mut f = f;
|
||||
let actual = f.get();
|
||||
assert_eq!(actual, expected);
|
||||
tx.send(f.get());
|
||||
});
|
||||
assert_eq!(rx.recv(), expected);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user