chore(tests): fix not-compiling tests

This commit is contained in:
Sean McArthur
2018-02-15 12:55:02 -08:00
parent 39e03a91e2
commit 6244526a5b
2 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ mod tests {
promise.then(|fulfilled| {
let res = fulfilled.expect("fulfilled");
match res.unwrap_err() {
::Error::Cancel(_) => (),
(::Error::Cancel(_), Some(_)) => (),
e => panic!("expected Error::Cancel(_), found {:?}", e),
}

View File

@@ -463,8 +463,8 @@ mod tests {
.expect_err("callback response");
match err {
::Error::Cancel(_) => (),
other => panic!("expected Cancel(_), got {:?}", other),
(::Error::Cancel(_), Some(_)) => (),
other => panic!("expected Canceled, got {:?}", other),
}
Ok::<(), ()>(())
}).wait().unwrap();