Skip to content

Commit 6244526

Browse files
committed
chore(tests): fix not-compiling tests
1 parent 39e03a9 commit 6244526

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/client/dispatch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ mod tests {
117117
promise.then(|fulfilled| {
118118
let res = fulfilled.expect("fulfilled");
119119
match res.unwrap_err() {
120-
::Error::Cancel(_) => (),
120+
(::Error::Cancel(_), Some(_)) => (),
121121
e => panic!("expected Error::Cancel(_), found {:?}", e),
122122
}
123123

src/proto/h1/dispatch.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ mod tests {
463463
.expect_err("callback response");
464464

465465
match err {
466-
::Error::Cancel(_) => (),
467-
other => panic!("expected Cancel(_), got {:?}", other),
466+
(::Error::Cancel(_), Some(_)) => (),
467+
other => panic!("expected Canceled, got {:?}", other),
468468
}
469469
Ok::<(), ()>(())
470470
}).wait().unwrap();

0 commit comments

Comments
 (0)