From a22f4e9be54077c13b26271724dca8f85fb897a1 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Fri, 4 Oct 2019 19:43:54 -0700 Subject: [PATCH] trying to diagnose failure in CI, mark II (#42036) * remove prints * Remove the setUpAll() to see if that changes the error message. --- .../test/general.shard/dart/pub_get_test.dart | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart b/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart index d3e8397dd4..0b9f7f826f 100644 --- a/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart +++ b/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart @@ -24,16 +24,9 @@ import '../../src/context.dart'; import '../../src/mocks.dart' as mocks; void main() { - print('1. MAIN'); - setUpAll(() { - print('2. setUpAll'); - Cache.flutterRoot = getFlutterRoot(); - print('3. setUpAll'); - }); - print('4. MAIN'); + Cache.flutterRoot = getFlutterRoot(); testUsingContext('pub get 69', () async { - print('5. pub get 69'); String error; final MockProcessManager processMock = context.get(); @@ -102,7 +95,6 @@ void main() { }); testUsingContext('pub cache in root is used', () async { - print('6. pub cache in root is used'); String error; final MockProcessManager processMock = context.get() as MockProcessManager; @@ -130,7 +122,6 @@ void main() { }); testUsingContext('pub cache in environment is used', () async { - print('7. pub cache in environment is used'); String error; final MockProcessManager processMock = context.get(); @@ -159,7 +150,6 @@ void main() { }); testUsingContext('analytics sent on success', () async { - print('8. analytics sent on success'); MockDirectory.findCache = true; await pubGet(context: PubContext.flutterTests, checkLastModified: false); verify(flutterUsage.sendEvent('pub', 'flutter-tests', label: 'success')).called(1); @@ -175,7 +165,6 @@ void main() { }); testUsingContext('analytics sent on failure', () async { - print('9. analytics sent on failure'); MockDirectory.findCache = true; try { await pubGet(context: PubContext.flutterTests, checkLastModified: false); @@ -195,7 +184,6 @@ void main() { }); testUsingContext('analytics sent on failed version solve', () async { - print('10. analytics sent on failed version solve'); MockDirectory.findCache = true; try { await pubGet(context: PubContext.flutterTests, checkLastModified: false); @@ -216,7 +204,6 @@ void main() { ), Usage: () => MockUsage(), }); - print('11. MAIN END'); } typedef StartCallback = void Function(List command);