Wait longer for timeout in timeout_test (#192)

This commit is contained in:
Sigurd Meldgaard 2019-06-14 10:34:45 +02:00 committed by GitHub
parent 6c0f61aaf6
commit e65c52070b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -115,9 +115,7 @@ void main() {
Future<int> methodHandler(ServiceCall call, Future<int> request) async {
try {
expect(call.isTimedOut, isFalse);
Future delay = Future.delayed(Duration(milliseconds: 2));
expect(delay, completes);
await delay;
await Future.delayed(Duration(milliseconds: 50));
expect(call.isTimedOut, isTrue);
try {
await request;