Skip to content

Instantly share code, notes, and snippets.

@mehmetf
Last active November 14, 2018 17:55
Show Gist options
  • Save mehmetf/bcc110b6b56748b1d9b1e09caccc9900 to your computer and use it in GitHub Desktop.
Save mehmetf/bcc110b6b56748b1d9b1e09caccc9900 to your computer and use it in GitHub Desktop.
import "dart:async";
import "package:flutter_test/flutter_test.dart";
void main() {
Future future;
setUp(() {
future = new Future.value();
});
testWidgets("awaiting future with value from setUp works", (WidgetTester tester) async {
await tester.runAsync(() => future);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment