From 6f9ed76faf9fe7f254291cc5bf9c5ffe4c459487 Mon Sep 17 00:00:00 2001 From: sjindel-google Date: Mon, 24 Feb 2020 16:52:11 +0100 Subject: [PATCH] Update covariant_templates_test after changes to TypeError. (#51330) TypeError no longer implements AssertionError after https://github.com/dart-lang/sdk/issues/40317. --- packages/flutter/test/foundation/covariant_templates_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/test/foundation/covariant_templates_test.dart b/packages/flutter/test/foundation/covariant_templates_test.dart index 621ad182ea..d522000cba 100644 --- a/packages/flutter/test/foundation/covariant_templates_test.dart +++ b/packages/flutter/test/foundation/covariant_templates_test.dart @@ -18,6 +18,6 @@ void main() { final A ayAsAx = ay; expect(() { ayAsAx.u = X(); - }, throwsAssertionError); + }, throwsA(isA())); }); }