Skip to content

Commit b376446

Browse files
committed
fix: cleanup only at the end
1 parent fa2c431 commit b376446

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bindings/python/src/ldk_node/test_ldk_node.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,9 @@ def test_channel_full_cycle(self):
248248
node_1.stop()
249249
node_2.stop()
250250

251+
finally:
251252
# Cleanup
252253
time.sleep(1) # Wait a sec so our logs can finish writing
253-
tmp_dir_1.cleanup()
254-
tmp_dir_2.cleanup()
255-
finally:
256254
# Cleanup even if the test fails
257255
tmp_dir_1.cleanup()
258256
tmp_dir_2.cleanup()

0 commit comments

Comments
 (0)