From 6244526a5b9667b9c53a03c5d1ed2cac2f2d86d5 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 15 Feb 2018 12:55:02 -0800 Subject: [PATCH] chore(tests): fix not-compiling tests --- src/client/dispatch.rs | 2 +- src/proto/h1/dispatch.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index b61ea735d4..5c6267a092 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -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), } diff --git a/src/proto/h1/dispatch.rs b/src/proto/h1/dispatch.rs index 88f24eccd2..03ec04acce 100644 --- a/src/proto/h1/dispatch.rs +++ b/src/proto/h1/dispatch.rs @@ -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();