Skip to content

Commit

Permalink
Minor cleanup to tests (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramp committed Oct 2, 2023
1 parent 9211d54 commit 0bd301b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
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
File renamed without changes.
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

0 comments on commit 0bd301b

Please sign in to comment.