committed by
GitHub
parent
1da1667920
commit
58ef02f02b
@ -575,7 +575,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_parse_status() {
|
||||
assert_eq!(LedgerWallet::parse_status(APDU_SUCCESS_CODE).unwrap(), ());
|
||||
LedgerWallet::parse_status(APDU_SUCCESS_CODE).expect("unexpected result");
|
||||
if let RemoteWalletError::LedgerError(err) = LedgerWallet::parse_status(0x6985).unwrap_err()
|
||||
{
|
||||
assert_eq!(err, LedgerError::UserCancel);
|
||||
|
@ -535,7 +535,7 @@ mod tests {
|
||||
manufacturer: "Ledger".to_string(),
|
||||
model: "Nano S".to_string(),
|
||||
serial: "0001".to_string(),
|
||||
pubkey: pubkey.clone(),
|
||||
pubkey,
|
||||
error: None,
|
||||
};
|
||||
let mut test_info = RemoteWalletInfo::default();
|
||||
|
Reference in New Issue
Block a user