commit | 6ecf967b7def868e26ce6eef3e66437b1e6c2b11 | [log] [tgz] |
---|---|---|
author | Keerti Parthasarathy <keertip@users.noreply.github.com> | Tue Jul 11 15:06:23 2017 -0700 |
committer | Todd Volkert <tvolkert@users.noreply.github.com> | Tue Jul 11 15:06:23 2017 -0700 |
tree | c303bfdcedabb4e47e28237435b7e382e708c430 | |
parent | fb5bce52ea233d5aea62604c58985c5439a82b51 [diff] |
Make the test async so as to wait for write to be done (#58)
diff --git a/test/common_tests.dart b/test/common_tests.dart index a8082de..89907f9 100644 --- a/test/common_tests.dart +++ b/test/common_tests.dart
@@ -2188,7 +2188,7 @@ isSinkClosed = true; }); - test('throwsIfEncodingIsNullAndWriteObject', () { + test('throwsIfEncodingIsNullAndWriteObject', () async { sink.encoding = null; expect(() => sink.write('Hello world'), throwsNoSuchMethodError); });