Unverified Commit d6593dee authored by Victoria Ashworth's avatar Victoria Ashworth Committed by GitHub

Make flutter_adapter_test more resilient to pub output (#124139)

Make flutter_adapter_test more resilient to pub output
parent a68b4247
...@@ -60,14 +60,18 @@ void main() { ...@@ -60,14 +60,18 @@ void main() {
final String output = _uniqueOutputLines(outputEvents); final String output = _uniqueOutputLines(outputEvents);
expectLines(output, <Object>[ expectLines(
output,
<Object>[
'Launching $relativeMainPath on Flutter test device in debug mode...', 'Launching $relativeMainPath on Flutter test device in debug mode...',
startsWith('Connecting to VM Service at'), startsWith('Connecting to VM Service at'),
'topLevelFunction', 'topLevelFunction',
'Application finished.', 'Application finished.',
'', '',
startsWith('Exited'), startsWith('Exited'),
]); ],
allowExtras: true,
);
}); });
testWithoutContext('logs to client when sendLogsToClient=true', () async { testWithoutContext('logs to client when sendLogsToClient=true', () async {
...@@ -125,13 +129,17 @@ void main() { ...@@ -125,13 +129,17 @@ void main() {
final String output = _uniqueOutputLines(outputEvents); final String output = _uniqueOutputLines(outputEvents);
expectLines(output, <Object>[ expectLines(
'Launching $relativeMainPath on Flutter test device in debug mode...', output,
'topLevelFunction', <Object>[
'Application finished.', 'Launching $relativeMainPath on Flutter test device in debug mode...',
'', 'topLevelFunction',
startsWith('Exited'), 'Application finished.',
]); '',
startsWith('Exited'),
],
allowExtras: true,
);
// If we're running with an out-of-process debug adapter, ensure that its // If we're running with an out-of-process debug adapter, ensure that its
// own process shuts down after we terminated. // own process shuts down after we terminated.
...@@ -246,6 +254,7 @@ void main() { ...@@ -246,6 +254,7 @@ void main() {
startsWith('Reloaded'), startsWith('Reloaded'),
'topLevelFunction', 'topLevelFunction',
], ],
allowExtras: true,
); );
await dap.client.terminate(); await dap.client.terminate();
...@@ -320,6 +329,7 @@ void main() { ...@@ -320,6 +329,7 @@ void main() {
startsWith('Restarted application'), startsWith('Restarted application'),
'topLevelFunction', 'topLevelFunction',
], ],
allowExtras: true,
); );
await dap.client.terminate(); await dap.client.terminate();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment