From 1cee81c40a00cb2a458160776ec503726da354fe Mon Sep 17 00:00:00 2001 From: Christopher Fujino Date: Tue, 23 Jan 2024 12:31:53 -0800 Subject: [PATCH] [flutter_tools] fix language_version_test and enable shuffle (#142009) Part of https://github.com/flutter/flutter/issues/85160 --- .../test/general.shard/dart/language_version_test.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/flutter_tools/test/general.shard/dart/language_version_test.dart b/packages/flutter_tools/test/general.shard/dart/language_version_test.dart index 2be1ea9790e..112a2aa6684 100644 --- a/packages/flutter_tools/test/general.shard/dart/language_version_test.dart +++ b/packages/flutter_tools/test/general.shard/dart/language_version_test.dart @@ -2,13 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(gspencergoog): Remove this tag once this test's state leaks/test -// dependencies have been fixed. -// https://github.com/flutter/flutter/issues/85160 -// Fails with "flutter test --test-randomize-ordering-seed=456" -@Tags(['no-shuffle']) -library; - import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; import 'package:flutter_tools/src/dart/language_version.dart'; @@ -252,6 +245,7 @@ part of 'foo.dart'; testWithoutContext('does not detect language version after library declaration', () { final FileSystem fileSystem = MemoryFileSystem.test(); + setUpLanguageVersion(fileSystem); final File file = fileSystem.file('example.dart') ..writeAsStringSync(''' // Some license