consensus: Simplify error handling in a test

Part of #477.
This commit is contained in:
teor 2020-06-22 10:07:16 +10:00
parent f1ce4dcf14
commit f40bfff7c0
1 changed files with 2 additions and 5 deletions

View File

@ -267,11 +267,8 @@ mod tests {
.await;
ensure!(
match verify_result {
Ok(_) => false,
// TODO(teor || jlusby): check error string
_ => true,
},
// TODO(teor || jlusby): check error string
verify_result.is_err(),
"unexpected result kind: {:?}",
verify_result
);