Skip to content

Commit f0dd814

Browse files
committed
WIP - give time to close file
1 parent 7871b01 commit f0dd814

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/python/tests/troubleshooting/test_logging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import os
3+
import time
34

45
import pytest
56

@@ -24,4 +25,5 @@ def test_logging():
2425
with open(log_path, 'r') as fp:
2526
assert len(fp.readlines()) == 3
2627
finally:
28+
time.sleep(2)
2729
os.remove(log_path)

0 commit comments

Comments
 (0)