require awaiting Testbed.run (#43952)

This commit is contained in:
Jonah Williams
2019-11-01 10:55:04 -07:00
committed by GitHub
parent 8d5caf3df2
commit 0cd8cef8f5
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class Testbed {
///
/// `overrides` may be used to provide new context values for the single test
/// case or override any context values from the setup.
FutureOr<T> run<T>(FutureOr<T> Function() test, {Map<Type, Generator> overrides}) {
Future<T> run<T>(FutureOr<T> Function() test, {Map<Type, Generator> overrides}) {
final Map<Type, Generator> testOverrides = <Type, Generator>{
..._testbedDefaults,
// Add the initial setUp overrides