We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a28499 commit cb5458cCopy full SHA for cb5458c
dart/test/sync_test.dart
@@ -440,8 +440,22 @@ void _syncTests<T>({
440
expect(progress, isNull);
441
442
// Emit new data, progress should be 0/2 instead of 10/12
443
- applyInstructions(pushCheckpoint(
444
- lastOpId: 12, buckets: [bucketDescription('a', count: 12)]));
+ applyInstructions(syncLine({
+ '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
+ }));
459
expect(totalProgress(), (0, 2));
460
461
pushSyncData('a', 2);
0 commit comments