[flutter_tools] Refresh VM state before executing hot reload (#53960)

This commit is contained in:
Jason Simmons
2020-04-07 15:41:02 -07:00
committed by GitHub
parent cccfe96e72
commit c663cd55a7
3 changed files with 9 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ void main() {
});
when(mockFlutterDevice.vmService).thenReturn(mockVMService);
when(mockFlutterDevice.refreshViews()).thenAnswer((Invocation invocation) async { });
when(mockFlutterDevice.getVMs()).thenAnswer((Invocation invocation) async { });
when(mockFlutterDevice.reloadSources(any, pause: anyNamed('pause'))).thenReturn(<Future<Map<String, dynamic>>>[
Future<Map<String, dynamic>>.value(<String, dynamic>{
'type': 'ReloadReport',