diff --git a/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart b/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart index ec1d3a952..047b198b5 100644 --- a/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart +++ b/test/service_tests/third_party_service_test.dart/connectivity_service_test.dart @@ -39,6 +39,17 @@ class MockConnectivityService extends Mock return Future.value(connectivityStatus!); } + @override + Future hasConnection() async { + try { + final results = await getConnectionType(); + return results.isNotEmpty && + results.any((result) => result != ConnectivityResult.none); + } catch (e) { + return false; + } + } + @override Future isReachable({ http.Client? client,