Skip to content

Commit 46b51b5

Browse files
committed
Deleted outdated test
1 parent 134be9f commit 46b51b5

File tree

1 file changed

+1
-57
lines changed

1 file changed

+1
-57
lines changed

packages/custom_lint/test/src/workspace_test.dart

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -796,63 +796,7 @@ dependency_overrides:
796796
expect(packageConfigJson['generator'], 'pub');
797797
});
798798

799-
test('runs offline if possible', () async {
800-
final workingDir =
801-
await createSimpleWorkspace(withPackageConfig: false, [
802-
'custom_lint_builder',
803-
Pubspec(
804-
'plugin1',
805-
dependencies: {'custom_lint_builder': HostedDependency()},
806-
),
807-
Pubspec(
808-
'a',
809-
devDependencies: {'plugin1': HostedDependency()},
810-
),
811-
]);
812-
813-
// Override a's package_config to include custom_lint_builder
814-
// as createSimpleWorkspace doesn't resolve transitive dependencies.
815-
final aPackageConfig = PackageConfig([
816-
Package(
817-
'custom_lint_builder',
818-
workingDir.dir('custom_lint_builder').uri,
819-
languageVersion: LanguageVersion.parse('3.0'),
820-
),
821-
Package(
822-
'plugin1',
823-
workingDir.dir('plugin1').uri,
824-
languageVersion: LanguageVersion.parse('3.0'),
825-
),
826-
Package(
827-
'a',
828-
workingDir.dir('a').uri,
829-
languageVersion: LanguageVersion.parse('3.0'),
830-
),
831-
]);
832-
833-
workingDir
834-
.dir('a') //
835-
.packageConfig
836-
.writeAsStringSync(
837-
jsonEncode(PackageConfig.toJson(aPackageConfig)),
838-
);
839-
840-
final workspace = await fromContextRootsFromPaths(
841-
['a'],
842-
workingDirectory: workingDir,
843-
);
844-
845-
final tempDir = createTemporaryDirectory();
846-
await runWithoutInternet(() => workspace.resolvePluginHost(tempDir));
847-
848-
final packageConfigJson = jsonDecode(
849-
tempDir.packageConfig.readAsStringSync(),
850-
) as Map<String, dynamic>;
851-
852-
expect(packageConfigJson['generator'], 'custom_lint');
853-
});
854-
855-
test('queries pub.dev if fails to run offline', () async {
799+
test('queries pub.dev', () async {
856800
final workingDir =
857801
await createSimpleWorkspace(withPackageConfig: false, [
858802
'custom_lint_builder',

0 commit comments

Comments
 (0)