@@ -618,7 +618,7 @@ void _declareTests(String name, SyncOptions options, bool bson) {
618
618
Future <void > expectProgress (
619
619
StreamQueue <SyncStatus > status, {
620
620
required Object total,
621
- Map <BucketPriority , Object > priorities = const {},
621
+ Map <StreamPriority , Object > priorities = const {},
622
622
}) async {
623
623
await expectLater (
624
624
status,
@@ -939,11 +939,11 @@ void _declareTests(String name, SyncOptions options, bool bson) {
939
939
await Completer <void >().future;
940
940
}));
941
941
942
- syncClient. streamingSync ();
942
+ await connect ();
943
943
await requestStarted.future;
944
944
expect (database.currentStatus, isSyncStatus (connecting: true ));
945
945
946
- await syncClient. abort ();
946
+ await database. disconnect ();
947
947
expect (database.currentStatus.anyError, isNull);
948
948
});
949
949
@@ -962,7 +962,7 @@ void _declareTests(String name, SyncOptions options, bool bson) {
962
962
});
963
963
await expectLater (status, emits (isSyncStatus (downloading: true )));
964
964
965
- await syncClient. abort ();
965
+ await database. disconnect ();
966
966
expect (database.currentStatus.anyError, isNull);
967
967
});
968
968
});
0 commit comments