@@ -133,10 +133,9 @@ class TestFlutterApp extends IntegrationTestApp {
133133 return _timeoutWithMessages <Map <String , Object ?>>(
134134 () => response.future,
135135 timeout: timeout,
136- message:
137- event != null
138- ? 'Did not receive expected $event event.'
139- : 'Did not receive response to request "$id ".' ,
136+ message: event != null
137+ ? 'Did not receive expected $event event.'
138+ : 'Did not receive response to request "$id ".' ,
140139 ).whenComplete (() => sub.cancel ());
141140 }
142141
@@ -350,8 +349,8 @@ abstract class IntegrationTestApp with IOMixin {
350349 _debugPrint ('Waiting for process to end' );
351350 return runProcess! .exitCode.timeout (
352351 IOMixin .killTimeout,
353- onTimeout:
354- () => killGracefully (runProcess! , debugLogging: debugTestScript),
352+ onTimeout: () =>
353+ killGracefully (runProcess! , debugLogging: debugTestScript),
355354 );
356355 }
357356
@@ -387,8 +386,9 @@ abstract class IntegrationTestApp with IOMixin {
387386
388387 String _debugPrint (String msg) {
389388 const maxLength = 500 ;
390- final truncatedMsg =
391- msg.length > maxLength ? '${msg .substring (0 , maxLength )}...' : msg;
389+ final truncatedMsg = msg.length > maxLength
390+ ? '${msg .substring (0 , maxLength )}...'
391+ : msg;
392392 _allMessages.add (truncatedMsg);
393393 debugLog ('_TestApp - $truncatedMsg ' );
394394 return msg;
@@ -404,12 +404,11 @@ Uri convertToWebSocketUrl({required Uri serviceProtocolUrl}) {
404404 serviceProtocolUrl.isScheme ('https' );
405405 final scheme = isSecure ? 'wss' : 'ws' ;
406406
407- final path =
408- serviceProtocolUrl.path.endsWith ('/ws' )
409- ? serviceProtocolUrl.path
410- : (serviceProtocolUrl.path.endsWith ('/' )
411- ? '${serviceProtocolUrl .path }ws'
412- : '${serviceProtocolUrl .path }/ws' );
407+ final path = serviceProtocolUrl.path.endsWith ('/ws' )
408+ ? serviceProtocolUrl.path
409+ : (serviceProtocolUrl.path.endsWith ('/' )
410+ ? '${serviceProtocolUrl .path }ws'
411+ : '${serviceProtocolUrl .path }/ws' );
413412
414413 return serviceProtocolUrl.replace (scheme: scheme, path: path);
415414}
0 commit comments