From 3174443e0ec4a1f941e59599db07b80c0abc2972 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Tue, 5 Dec 2017 12:30:13 -0800 Subject: [PATCH] Fix a problem with the flutter_tools/test/dart/pub_get_test.dart test. (#13354) It turns out that when a PR build clones the flutter repo, it puts it into a directory called "flutter", and when the "real" build clones the flutter repo, it puts it into a directory called "build". This allowed the tests to succeed in my PR, but fail when I committed it. This fixes the test so it doesn't depend on the cloned directory name. --- packages/flutter_tools/test/dart/pub_get_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/test/dart/pub_get_test.dart b/packages/flutter_tools/test/dart/pub_get_test.dart index 6cbbb47251..aee8261e3f 100644 --- a/packages/flutter_tools/test/dart/pub_get_test.dart +++ b/packages/flutter_tools/test/dart/pub_get_test.dart @@ -245,7 +245,7 @@ class MockDirectory implements Directory { final String path; @override - bool existsSync() => findCache && path.endsWith('flutter/.pub-cache'); + bool existsSync() => findCache && path.endsWith('.pub-cache'); @override dynamic noSuchMethod(Invocation invocation) => null;