Skip to content

Commit cb5458c

Browse files
committed
Use checkpoint diff for test
1 parent 3a28499 commit cb5458c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

dart/test/sync_test.dart

+16-2
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,22 @@ void _syncTests<T>({
440440
expect(progress, isNull);
441441

442442
// Emit new data, progress should be 0/2 instead of 10/12
443-
applyInstructions(pushCheckpoint(
444-
lastOpId: 12, buckets: [bucketDescription('a', count: 12)]));
443+
applyInstructions(syncLine({
444+
'checkpoint_diff': {
445+
'last_op_id': '12',
446+
'updated_buckets': [
447+
{
448+
'bucket': 'a',
449+
'priority': 3,
450+
'checksum': 0,
451+
'count': 12,
452+
'last_op_id': null
453+
},
454+
],
455+
'removed_buckets': [],
456+
'write_checkpoint': null,
457+
}
458+
}));
445459
expect(totalProgress(), (0, 2));
446460

447461
pushSyncData('a', 2);

0 commit comments

Comments
 (0)