diff --git a/packages/devtools_app_shared/lib/src/service/eval_on_dart_library.dart b/packages/devtools_app_shared/lib/src/service/eval_on_dart_library.dart index 3022458cb94..bec54d915e6 100644 --- a/packages/devtools_app_shared/lib/src/service/eval_on_dart_library.dart +++ b/packages/devtools_app_shared/lib/src/service/eval_on_dart_library.dart @@ -211,7 +211,7 @@ class EvalOnDartLibrary extends DisposableController if (result is ErrorRef) { throw result; } - return result as FutureOr; + return await result as FutureOr; } catch (e, stack) { if (shouldLogError) { _handleError('$e - $expression', stack); @@ -242,7 +242,7 @@ class EvalOnDartLibrary extends DisposableController if (result is ErrorRef) { throw result; } - return result as FutureOr; + return await result as FutureOr; } catch (e, stack) { if (shouldLogError) { _handleError('$e - $name', stack); diff --git a/packages/devtools_shared/test/helpers/helpers.dart b/packages/devtools_shared/test/helpers/helpers.dart index e2043312d69..523795b66fd 100644 --- a/packages/devtools_shared/test/helpers/helpers.dart +++ b/packages/devtools_shared/test/helpers/helpers.dart @@ -55,7 +55,7 @@ Future startDtd() async { } }); - return completer.future + return await completer.future .timeout(dtdConnectTimeout, onTimeout: onFailure) .then((value) async { await dtdStoutSubscription?.cancel();