Start logger in startProgress to avoid assertion failure (#20814)

* Start logger in startProgress to avoid assertion failure

There are lots of places that create a Status() and all but two of them call ..start() immediately. This is one of the places that doesn't, which causes an assertion failure when running with --enable-asserts and the other is in the same file (I suspect it's also incorrect, but possibly it's never used - I'll look at that separately when I can trace some code that calls it).

Fixes #20812.

* Enable asserts for tools tests

* Fix lint

* Rename enableAsserts -> enableFlutterToolAsserts

To make it clearer that it only enables asserts for flutter_tools when set.
This commit is contained in:
Danny Tuppeny
2018-08-23 20:49:59 +01:00
committed by GitHub
parent 1ba16d55f3
commit dc5a5c18a9
2 changed files with 14 additions and 2 deletions

View File

@@ -908,7 +908,7 @@ class _AppRunLogger extends Logger {
'progressId': progressId,
'finished': true
});
});
})..start();
return _status;
}