Skip to content

Commit 79ad99f

Browse files
committed
Adding in some sleeps inbetween steps for async processing
1 parent 13c73a1 commit 79ad99f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/integration/synapseclient/models/async/test_recordset_async.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,14 +526,16 @@ async def record_set_with_validation_fixture(
526526
await stored_record_set.get_schema_async(synapse_client=self.syn)
527527

528528
# Wait for schema binding to be fully processed by backend
529-
await asyncio.sleep(15)
529+
await asyncio.sleep(10)
530530

531531
# Create a Grid session from the RecordSet
532532
grid = Grid(record_set_id=stored_record_set.id)
533533
created_grid = await grid.create_async(
534534
timeout=ASYNC_JOB_TIMEOUT_SEC, synapse_client=self.syn
535535
)
536536

537+
await asyncio.sleep(10)
538+
537539
# Export the Grid back to RecordSet to generate validation results
538540
exported_grid = await created_grid.export_to_record_set_async(
539541
timeout=ASYNC_JOB_TIMEOUT_SEC, synapse_client=self.syn

tests/integration/synapseclient/models/synchronous/test_recordset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def record_set_with_validation_fixture(
510510
synapse_client=self.syn,
511511
)
512512

513-
time.sleep(15)
513+
time.sleep(10)
514514

515515
# Verify the schema is bound by getting the schema from the entity
516516
stored_record_set.get_schema(synapse_client=self.syn)
@@ -521,6 +521,8 @@ def record_set_with_validation_fixture(
521521
timeout=ASYNC_JOB_TIMEOUT_SEC, synapse_client=self.syn
522522
)
523523

524+
time.sleep(10)
525+
524526
# Export the Grid back to RecordSet to generate validation results
525527
exported_grid = created_grid.export_to_record_set(
526528
timeout=ASYNC_JOB_TIMEOUT_SEC, synapse_client=self.syn

0 commit comments

Comments
 (0)