Skip to content

Commit 3f38f92

Browse files
committed
f - Update test comment
1 parent 0bc3317 commit 3f38f92

File tree

1 file changed

+3
-1
lines changed
  • lightning-background-processor/src

1 file changed

+3
-1
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ mod tests {
279279
// re-persistence and is successfully re-persisted.
280280
let nodes = create_nodes(2, "test_background_processor".to_string());
281281

282-
// Go through the channel creation process until each node should have something persisted.
282+
// Go through the channel creation process so that each node has something to persist. Since
283+
// open_channel consumes events, it must complete before starting BackgroundProcessor to
284+
// avoid a race with processing events.
283285
let tx = open_channel!(nodes[0], nodes[1], 100000);
284286

285287
// Initiate the background processors to watch each node.

0 commit comments

Comments
 (0)