Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 20fb4cb

Browse files
committed
fixed system tests
1 parent 8993539 commit 20fb4cb

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

tests/system/data/test_system_async.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,8 @@ async def test_mutations_batcher_completed_callback(
507507
)
508508
bulk_mutation = RowMutationEntry(row_key, [mutation])
509509
flush_interval = 0.1
510-
async with target.mutations_batcher(
511-
flush_interval=flush_interval, _batch_completed_callback=callback
512-
) as batcher:
510+
async with target.mutations_batcher(flush_interval=flush_interval) as batcher:
511+
batcher._user_batch_completed_callback = callback
513512
await batcher.append(bulk_mutation)
514513
await CrossSync.yield_to_event_loop()
515514
assert len(batcher._staged_entries) == 1

tests/system/data/test_system_autogen.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,8 @@ def test_mutations_batcher_completed_callback(self, client, target, temp_rows):
403403
)
404404
bulk_mutation = RowMutationEntry(row_key, [mutation])
405405
flush_interval = 0.1
406-
with target.mutations_batcher(
407-
flush_interval=flush_interval, _batch_completed_callback=callback
408-
) as batcher:
406+
with target.mutations_batcher(flush_interval=flush_interval) as batcher:
407+
batcher._user_batch_completed_callback = callback
409408
batcher.append(bulk_mutation)
410409
CrossSync._Sync_Impl.yield_to_event_loop()
411410
assert len(batcher._staged_entries) == 1

0 commit comments

Comments
 (0)