Skip to content

Commit 5907738

Browse files
committed
Fix 0.6.2 compatibility test shutdown
Stop and drop the old compatibility node from a blocking region. This avoids a Tokio runtime-drop panic in the async test. Co-Authored-By: HAL 9000
1 parent c7e001b commit 5907738

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/integration_tests_rust.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,11 @@ async fn build_0_6_2_node(
25802580
assert!(balance > 0);
25812581
let node_id = node_old.node_id();
25822582

2583-
node_old.stop().unwrap();
2583+
// Workaround necessary as v0.6.2's runtime wasn't dropsafe in a tokio context.
2584+
tokio::task::block_in_place(move || {
2585+
node_old.stop().unwrap();
2586+
drop(node_old);
2587+
});
25842588

25852589
(balance, node_id)
25862590
}

0 commit comments

Comments
 (0)