Skip to content

Commit 1cee81c

Browse files
[flutter_tools] fix language_version_test and enable shuffle (#142009)
Part of flutter/flutter#85160
1 parent 574e598 commit 1cee81c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/flutter_tools/test/general.shard/dart/language_version_test.dart

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
// TODO(gspencergoog): Remove this tag once this test's state leaks/test
6-
// dependencies have been fixed.
7-
// https://github.com/flutter/flutter/issues/85160
8-
// Fails with "flutter test --test-randomize-ordering-seed=456"
9-
@Tags(<String>['no-shuffle'])
10-
library;
11-
125
import 'package:file/memory.dart';
136
import 'package:flutter_tools/src/base/file_system.dart';
147
import 'package:flutter_tools/src/dart/language_version.dart';
@@ -252,6 +245,7 @@ part of 'foo.dart';
252245

253246
testWithoutContext('does not detect language version after library declaration', () {
254247
final FileSystem fileSystem = MemoryFileSystem.test();
248+
setUpLanguageVersion(fileSystem);
255249
final File file = fileSystem.file('example.dart')
256250
..writeAsStringSync('''
257251
// Some license

0 commit comments

Comments
 (0)