Skip to content

Commit

Permalink
chore(tests): fix not-compiling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 15, 2018
1 parent 39e03a9 commit 6244526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down
4 changes: 2 additions & 2 deletions src/proto/h1/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6244526

Please sign in to comment.