Skip to content

Commit b439780

Browse files
authored
Remove sleep between creating and exporting a batch (#1213)
1 parent 20710d6 commit b439780

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

tests/integration/export_v2/test_legacy_export.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ def test_export_data_rows(project: Project, dataset: Dataset):
171171

172172
data_rows = [dr.uid for dr in list(dataset.export_data_rows())]
173173
batch = project.create_batch("batch test", data_rows)
174-
175174
result = list(batch.export_data_rows())
176175
exported_data_rows = [dr.uid for dr in result]
177176

tests/integration/test_batch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ def test_export_data_rows(project: Project, dataset: Dataset):
211211

212212
data_rows = [dr.uid for dr in list(dataset.export_data_rows())]
213213
batch = project.create_batch("batch test", data_rows)
214-
# allow time for catapult to sync changes to ES
215-
time.sleep(5)
216214
result = list(batch.export_data_rows())
217215
exported_data_rows = [dr.uid for dr in result]
218216

tests/integration/test_project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ def test_create_batch_with_global_keys_sync(project: Project, data_rows):
228228
global_keys = [dr.global_key for dr in data_rows]
229229
batch_name = f'batch {uuid.uuid4()}'
230230
batch = project.create_batch(batch_name, global_keys=global_keys)
231-
# allow time for catapult to sync changes to ES
232-
time.sleep(5)
233231
# TODO: Move to export_v2
234232
batch_data_rows = set(batch.export_data_rows())
235233
assert batch_data_rows == set(data_rows)

0 commit comments

Comments
 (0)