Skip to content

Commit

Permalink
Remove StreamSubscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
robiness committed Nov 11, 2024
1 parent 99192c9 commit 28fae64
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/util/load_app_fonts/app_font_test.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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');
Expand All @@ -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();
}
});
}

0 comments on commit 28fae64

Please sign in to comment.