Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 1b7bff9

Browse files
committed
Improve expectation in unit test
1 parent eaab52e commit 1b7bff9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/webview_flutter/webview_flutter_android/test/webview_android_widget_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,7 @@ void main() {
888888
});
889889

890890
webViewClient.urlLoading(MockWebView(), 'https://flutter.dev');
891-
await completer.future;
892-
expect(completer.isCompleted, isTrue);
891+
expect(completer.future, completes);
893892
});
894893

895894
test(
@@ -983,8 +982,7 @@ void main() {
983982
});
984983

985984
webViewClient.requestLoading(MockWebView(), mockRequest);
986-
await completer.future;
987-
expect(completer.isCompleted, isTrue);
985+
expect(completer.future, completes);
988986
});
989987

990988
test(

0 commit comments

Comments
 (0)