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.
This commit is contained in:
Greg Spencer
2017-12-05 12:30:13 -08:00
committed by GitHub
parent 72d6bcc3f7
commit 3174443e0e

View File

@@ -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;