Last active
November 14, 2018 17:55
-
-
Save mehmetf/bcc110b6b56748b1d9b1e09caccc9900 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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