Skip to content

Commit 61b4b11

Browse files
committed
fix: wait until data rows are processed
1 parent b74ca54 commit 61b4b11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ def configured_batch_project_with_label(client, rand_gen, image_url,
398398
One label is already created and yielded when using fixture
399399
"""
400400
data_rows = [dr.uid for dr in list(dataset.data_rows())]
401+
batch_project._wait_until_data_rows_are_processed(data_row_ids=data_rows)
401402
batch_project.create_batch("test-batch", data_rows)
402403

403404
ontology = _setup_ontology(batch_project)
@@ -420,6 +421,7 @@ def configured_batch_project_with_multiple_datarows(batch_project, dataset,
420421
"""
421422
global_keys = [dr.global_key for dr in data_rows]
422423

424+
batch_project._wait_until_data_rows_are_processed(global_keys=global_keys)
423425
batch_name = f'batch {uuid.uuid4()}'
424426
batch_project.create_batch(batch_name, global_keys=global_keys)
425427

0 commit comments

Comments
 (0)