Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor cleanup to tests #1674

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// ignore_for_file: avoid_print

import 'dart:async';
import 'dart:convert';
import 'dart:typed_data';
Expand All @@ -23,11 +21,9 @@ Future<ImageInfo> getImageInfo(ImageProvider provider) {
stream.addListener(
ImageStreamListener(
(imageInfo, _) {
print('completer.complete($imageInfo)');
return completer.complete(imageInfo);
},
onError: (exception, stackTrace) {
print('completer.completeError($exception)');
return completer.completeError(exception, stackTrace);
},
),
Expand Down Expand Up @@ -67,7 +63,6 @@ void main() {
final url = randomUrl();
when(() => mockClient.readBytes(any(), headers: any(named: 'headers')))
.thenAnswer((_) async {
print('1');
return testWhiteTileBytes;
});

Expand All @@ -93,7 +88,6 @@ void main() {
final url = randomUrl();
when(() => mockClient.readBytes(any(), headers: any(named: 'headers')))
.thenAnswer((_) async {
print('2');
throw ClientException(
'Server error',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import 'package:flutter_map/src/map/map_controller.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:latlong2/latlong.dart';

import 'test_utils/test_app.dart';
import '../test_utils/test_app.dart';

void main() {
testWidgets('test fit bounds methods', (tester) async {
Expand Down
Loading