Skip to content

Commit e6297c6

Browse files
committed
f fix overly aggressive sed
1 parent 2b9b8b6 commit e6297c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/ln/monitor_tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ fn chanmon_fail_from_stale_commitment() {
8989

9090
#[test]
9191
fn chanmon_claim_value_coop_close() {
92-
// Tests .unwrap().get_claimable_balances` returns the correct values across a simple cooperative claim.
92+
// Tests `get_claimable_balances` returns the correct values across a simple cooperative claim.
9393
// Specifically, this tests that the channel non-HTLC balances show up in
94-
// .unwrap().get_claimable_balances` until the cooperative claims have confirmed and generated a
94+
// `get_claimable_balances` until the cooperative claims have confirmed and generated a
9595
// `SpendableOutputs` event, and no longer.
9696
let chanmon_cfgs = create_chanmon_cfgs(2);
9797
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
@@ -186,9 +186,9 @@ fn sorted_vec<T: Ord>(mut v: Vec<T>) -> Vec<T> {
186186
}
187187

188188
fn do_test_claim_value_force_close(prev_commitment_tx: bool) {
189-
// Tests .unwrap().get_claimable_balances` with an HTLC across a force-close.
189+
// Tests `get_claimable_balances` with an HTLC across a force-close.
190190
// We build a channel with an HTLC pending, then force close the channel and check that the
191-
// .unwrap().get_claimable_balances` return value is correct as transactions confirm on-chain.
191+
// `get_claimable_balances` return value is correct as transactions confirm on-chain.
192192
let mut chanmon_cfgs = create_chanmon_cfgs(2);
193193
if prev_commitment_tx {
194194
// We broadcast a second-to-latest commitment transaction, without providing the revocation
@@ -327,7 +327,7 @@ fn do_test_claim_value_force_close(prev_commitment_tx: bool) {
327327

328328
// Once the commitment transaction confirms, we will wait until ANTI_REORG_DELAY until we
329329
// generate any `SpendableOutputs` events. Thus, the same balances will still be listed
330-
// available in .unwrap().get_claimable_balances`. However, both will swap from `ClaimableOnClose` to
330+
// available in `get_claimable_balances`. However, both will swap from `ClaimableOnClose` to
331331
// other Balance variants, as close has already happened.
332332
assert!(nodes[0].chain_monitor.chain_monitor.get_and_clear_pending_events().is_empty());
333333
assert!(nodes[1].chain_monitor.chain_monitor.get_and_clear_pending_events().is_empty());

0 commit comments

Comments
 (0)