Skip to content

Commit 0d049fb

Browse files
committed
tests: workaround logfile closing race
1 parent 5463c04 commit 0d049fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pyln-testing/pyln/testing/fixtures.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def directory(request, test_base_dir, test_name):
9494

9595
if not failed and not bool(int(os.getenv('TEST_KEEPDIR', '0'))):
9696
try:
97+
# We are removing the log files before the processes are done logging ...
98+
# we don't seem to get the OSError, instead stderr gets spammed
99+
time.sleep(10)
97100
shutil.rmtree(directory)
98101
except OSError:
99102
# Usually, this means that e.g. valgrind is still running. Wait

0 commit comments

Comments
 (0)