diff --git a/test/util/load_app_fonts/app_font_test.dart b/test/util/load_app_fonts/app_font_test.dart index caa9aa19..75f6029b 100644 --- a/test/util/load_app_fonts/app_font_test.dart +++ b/test/util/load_app_fonts/app_font_test.dart @@ -1,8 +1,5 @@ -import 'dart:async'; -import 'dart:convert'; import 'dart:io'; -import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; @@ -11,8 +8,6 @@ void main() { test('When defined in pubspec a third-party font is loaded', () async { int exitCode = -1; late Directory tempDir; - late StreamSubscription s1; - late StreamSubscription s2; try { // Copy virtual/montserrat to test folder tempDir = Directory.systemTemp.createTempSync('app_font_test'); @@ -37,19 +32,11 @@ void main() { ); exitCode = await test.exitCode; - s1 = test.stdout.transform(utf8.decoder).listen((event) { - debugPrint(event); - }); - s2 = test.stderr.transform(utf8.decoder).listen((event) { - throw Exception(event); - }); } catch (e) { rethrow; } finally { expect(exitCode, equals(0)); tempDir.deleteSync(recursive: true); - s1.cancel(); - s2.cancel(); } }); }