Skip to content

Commit

Permalink
Use string literal to format unreachable message in test (#3483)
Browse files Browse the repository at this point in the history
* Use string literal to format unreachable message

* Try removing the redundant format

Co-authored-by: teor <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 8, 2022
1 parent 3644171 commit 2f33300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zebrad/src/components/inbound/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ async fn mempool_requests_for_transactions() {
.await;
match response {
Ok(Response::TransactionIds(response)) => assert_eq!(response, added_transaction_ids),
_ => unreachable!(format!(
_ => unreachable!(
"`MempoolTransactionIds` requests should always respond `Ok(Vec<UnminedTxId>)`, got {:?}",
response
)),
),
};

// Test `Request::TransactionsById`
Expand Down

0 comments on commit 2f33300

Please sign in to comment.