chore(tests): fix not-compiling tests
This commit is contained in:
@@ -117,7 +117,7 @@ mod tests {
|
|||||||
promise.then(|fulfilled| {
|
promise.then(|fulfilled| {
|
||||||
let res = fulfilled.expect("fulfilled");
|
let res = fulfilled.expect("fulfilled");
|
||||||
match res.unwrap_err() {
|
match res.unwrap_err() {
|
||||||
::Error::Cancel(_) => (),
|
(::Error::Cancel(_), Some(_)) => (),
|
||||||
e => panic!("expected Error::Cancel(_), found {:?}", e),
|
e => panic!("expected Error::Cancel(_), found {:?}", e),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -463,8 +463,8 @@ mod tests {
|
|||||||
.expect_err("callback response");
|
.expect_err("callback response");
|
||||||
|
|
||||||
match err {
|
match err {
|
||||||
::Error::Cancel(_) => (),
|
(::Error::Cancel(_), Some(_)) => (),
|
||||||
other => panic!("expected Cancel(_), got {:?}", other),
|
other => panic!("expected Canceled, got {:?}", other),
|
||||||
}
|
}
|
||||||
Ok::<(), ()>(())
|
Ok::<(), ()>(())
|
||||||
}).wait().unwrap();
|
}).wait().unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user