[flutter_tools] fix language_version_test and enable shuffle (#142009)

Part of https://github.com/flutter/flutter/issues/85160
This commit is contained in:
Christopher Fujino 2024-01-23 12:31:53 -08:00 committed by GitHub
parent 574e598118
commit 1cee81c40a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(<String>['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