Skip to content

Commit b2749c4

Browse files
authored
[AL-6732] fix test by adding sleep (#1178)
2 parents 895ff2a + ed5153a commit b2749c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/integration/test_batch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import time
2+
13
from labelbox.exceptions import ProcessingWaitTimeout
24
import pytest
35
from labelbox import Dataset, Project
@@ -170,7 +172,8 @@ def test_export_data_rows(project: Project, dataset: Dataset):
170172

171173
data_rows = [dr.uid for dr in list(dataset.export_data_rows())]
172174
batch = project.create_batch("batch test", data_rows)
173-
175+
# allow time for catapult to sync changes to ES
176+
time.sleep(5)
174177
result = list(batch.export_data_rows())
175178
exported_data_rows = [dr.uid for dr in result]
176179

0 commit comments

Comments
 (0)