[flutter_tools] Collect more information in ios-handshake failure event (#50804)

This commit is contained in:
Zachary Anderson
2020-02-14 09:40:52 -08:00
committed by GitHub
parent 18984101d9
commit c268b6c3d4
2 changed files with 20 additions and 3 deletions

View File

@@ -384,7 +384,12 @@ void main() {
debuggingOptions: DebuggingOptions.enabled(const BuildInfo(BuildMode.debug, null, treeShakeIcons: false)),
platformArgs: <String, dynamic>{},
);
verify(mockUsage.sendEvent('ios-handshake', 'failure')).called(1);
verify(mockUsage.sendEvent(
'ios-handshake',
'failure',
label: anyNamed('label'),
value: anyNamed('value'),
)).called(1);
verify(mockUsage.sendEvent('ios-handshake', 'mdns-failure')).called(1);
verify(mockUsage.sendEvent('ios-handshake', 'fallback-failure')).called(1);
expect(launchResult.started, isFalse);