Fix an ordering dependency in the flutter_tools upgrade test (#129131)
Cache.flutterRoot is set within testUsingContext and will be uninitialized the first time test suite setup is invoked.
This commit is contained in:
parent
323c296922
commit
03d50d1f8a
@ -38,7 +38,7 @@ void main() {
|
|||||||
setUp(() {
|
setUp(() {
|
||||||
fakeCommandRunner = FakeUpgradeCommandRunner();
|
fakeCommandRunner = FakeUpgradeCommandRunner();
|
||||||
realCommandRunner = UpgradeCommandRunner()
|
realCommandRunner = UpgradeCommandRunner()
|
||||||
..workingDirectory = Cache.flutterRoot;
|
..workingDirectory = getFlutterRoot();
|
||||||
processManager = FakeProcessManager.empty();
|
processManager = FakeProcessManager.empty();
|
||||||
fakeCommandRunner.willHaveUncommittedChanges = false;
|
fakeCommandRunner.willHaveUncommittedChanges = false;
|
||||||
fakePlatform = FakePlatform()..environment = Map<String, String>.unmodifiable(<String, String>{
|
fakePlatform = FakePlatform()..environment = Map<String, String>.unmodifiable(<String, String>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user