@@ -618,7 +618,7 @@ void _declareTests(String name, SyncOptions options, bool bson) {
618618 Future <void > expectProgress (
619619 StreamQueue <SyncStatus > status, {
620620 required Object total,
621- Map <BucketPriority , Object > priorities = const {},
621+ Map <StreamPriority , Object > priorities = const {},
622622 }) async {
623623 await expectLater (
624624 status,
@@ -939,11 +939,11 @@ void _declareTests(String name, SyncOptions options, bool bson) {
939939 await Completer <void >().future;
940940 }));
941941
942- syncClient. streamingSync ();
942+ await connect ();
943943 await requestStarted.future;
944944 expect (database.currentStatus, isSyncStatus (connecting: true ));
945945
946- await syncClient. abort ();
946+ await database. disconnect ();
947947 expect (database.currentStatus.anyError, isNull);
948948 });
949949
@@ -962,7 +962,7 @@ void _declareTests(String name, SyncOptions options, bool bson) {
962962 });
963963 await expectLater (status, emits (isSyncStatus (downloading: true )));
964964
965- await syncClient. abort ();
965+ await database. disconnect ();
966966 expect (database.currentStatus.anyError, isNull);
967967 });
968968 });
0 commit comments