Use string literal to format unreachable message in test (#3483)
* Use string literal to format unreachable message * Try removing the redundant format Co-authored-by: teor <teor@riseup.net> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
3644171738
commit
2f33300c08
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue