From 36a02f4cd239200beef9f5343fa615f787c6cf9a Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Thu, 17 Oct 2024 18:32:23 -0700 Subject: [PATCH] update test expectations (#3077) --- pkgs/dart_services/test/server_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/dart_services/test/server_test.dart b/pkgs/dart_services/test/server_test.dart index a3cc17c5b..26cac5a4a 100644 --- a/pkgs/dart_services/test/server_test.dart +++ b/pkgs/dart_services/test/server_test.dart @@ -310,7 +310,8 @@ void main() { offset: 21, )); - expect(result.fixes, hasLength(3)); + // Dart 3.5 returns 3 fixes; Dart 3.6 returns 4. + expect(result.fixes, anyOf(hasLength(3), hasLength(4))); final fix = result.fixes .firstWhereOrNull((fix) => fix.message.contains('Ignore'));