fix a test
diff --git a/test/pub_cache_test.dart b/test/pub_cache_test.dart index 4a1ddc5..0b0ff85 100644 --- a/test/pub_cache_test.dart +++ b/test/pub_cache_test.dart
@@ -126,7 +126,7 @@ }); group('PackageRef', () { - PubCache cache; + late PubCache cache; late Application app; late PackageRef ref; @@ -141,6 +141,9 @@ }); test('==', () { + Application app = cache + .getGlobalApplications() + .firstWhere((app) => app.getPackageRefs().length > 1); PackageRef ref0 = app.getPackageRefs()[0]; PackageRef ref1 = app.getPackageRefs()[1];