Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Fix deprecated getSdkDir cli_util call.
Browse files Browse the repository at this point in the history
  • Loading branch information
pq committed Jul 17, 2017
1 parent 2129e9b commit 829992b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/engine_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:analyzer/src/lint/io.dart';
import 'package:analyzer/src/lint/linter.dart';
import 'package:analyzer/src/lint/pub.dart';
import 'package:analyzer/src/string_source.dart' show StringSource;
import 'package:cli_util/cli_util.dart' show getSdkDir;
import 'package:cli_util/cli_util.dart' show getSdkPath;
import 'package:mockito/mockito.dart';
import 'package:test/test.dart';

Expand Down Expand Up @@ -170,8 +170,8 @@ void defineLinterEngineTests() {
// Smoke test to ensure a custom sdk path doesn't sink the ship
FileSystemEntity firstRuleTest =
new Directory(ruleDir).listSync().firstWhere((f) => isDartFile(f));
var sdk = getSdkDir();
dartlint.main(['--dart-sdk', sdk.path, firstRuleTest.path]);
var sdk = getSdkPath();
dartlint.main(['--dart-sdk', sdk, firstRuleTest.path]);
expect(dartlint.isLinterErrorCode(exitCode), isFalse);
});
test('custom package root', () {
Expand Down

0 comments on commit 829992b

Please sign in to comment.