We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc3317 commit 3f38f92Copy full SHA for 3f38f92
lightning-background-processor/src/lib.rs
@@ -279,7 +279,9 @@ mod tests {
279
// re-persistence and is successfully re-persisted.
280
let nodes = create_nodes(2, "test_background_processor".to_string());
281
282
- // Go through the channel creation process until each node should have something persisted.
+ // 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.
285
let tx = open_channel!(nodes[0], nodes[1], 100000);
286
287
// Initiate the background processors to watch each node.
0 commit comments