Skip to content

Commit 85c1ebc

Browse files
committed
Fix broken test
1 parent c516d7c commit 85c1ebc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

util/opentelemetry-util-genai/tests/test_upload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import logging
1919
import sys
2020
import threading
21+
import time
2122
from contextlib import contextmanager
2223
from typing import Any
2324
from unittest import TestCase
@@ -155,7 +156,7 @@ def test_upload_then_shutdown(self):
155156
)
156157
# all items should be consumed
157158
self.hook.shutdown()
158-
159+
time.sleep(2)
159160
self.assertEqual(
160161
self.mock_fs.open.call_count,
161162
3,

0 commit comments

Comments
 (0)