We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b457b3 commit 4065bc8Copy full SHA for 4065bc8
1 file changed
tests/wallet.rs
@@ -322,9 +322,11 @@ fn test_create_tx_invalid_current_height_returns_error() {
322
.add_recipient(addr.script_pubkey(), Amount::from_sat(25_000))
323
.current_height(500_000_000);
324
325
- assert_matches!(
326
- builder.finish(),
327
- Err(CreateTxError::InvalidCurrentHeight(500_000_000))
+ let err = builder.finish().unwrap_err();
+ assert_matches!(err, CreateTxError::InvalidCurrentHeight(500_000_000));
+ assert_eq!(
328
+ err.to_string(),
329
+ "Cannot use height 500000000 as a locktime (must be below 500_000_000)"
330
);
331
}
332
0 commit comments