* do not forward status if stream is closed
* remove devfs test timeout
This commit is contained in:
Dan Rubel
2017-03-13 13:47:29 -04:00
committed by GitHub
parent 74e2243ca4
commit 8742fb09fa
2 changed files with 3 additions and 2 deletions

View File

@@ -238,7 +238,7 @@ class AnalysisServer {
void _handleStatus(Map<String, dynamic> statusInfo) {
// {"event":"server.status","params":{"analysis":{"isAnalyzing":true}}}
if (statusInfo['analysis'] != null) {
if (statusInfo['analysis'] != null && !_analyzingController.isClosed) {
final bool isAnalyzing = statusInfo['analysis']['isAnalyzing'];
_analyzingController.add(isAnalyzing);
}

View File

@@ -269,9 +269,10 @@ void main() {
]);
expect(devFS.assetPathsToEvict, isEmpty);
expect(bytes, 48);
}, timeout: const Timeout(const Duration(seconds: 5)));
});
testUsingContext('delete dev file system', () async {
expect(vmService.messages, isEmpty, reason: 'prior test timeout');
await devFS.destroy();
vmService.expectMessages(<String>['_deleteDevFS {fsName: test}']);
expect(devFS.assetPathsToEvict, isEmpty);