Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: test/global/binstubs/outdated_binstub_runs_pub_global_test.dart

Issue 1556243002: Fix analyzer hints and warnings in test/. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io';
6
7 import 'package:path/path.dart' as p; 5 import 'package:path/path.dart' as p;
8 import 'package:scheduled_test/scheduled_process.dart'; 6 import 'package:scheduled_test/scheduled_process.dart';
9 import 'package:scheduled_test/scheduled_stream.dart'; 7 import 'package:scheduled_test/scheduled_stream.dart';
10 import 'package:scheduled_test/scheduled_test.dart';
11 8
12 import '../../descriptor.dart' as d; 9 import '../../descriptor.dart' as d;
13 import '../../test_pub.dart'; 10 import '../../test_pub.dart';
14 import 'utils.dart'; 11 import 'utils.dart';
15 12
16 main() { 13 main() {
17 integration("an outdated binstub runs 'pub global run'", () { 14 integration("an outdated binstub runs 'pub global run'", () {
18 servePackages((builder) { 15 servePackages((builder) {
19 builder.serve("foo", "1.0.0", pubspec: { 16 builder.serve("foo", "1.0.0", pubspec: {
20 "executables": { 17 "executables": {
(...skipping 18 matching lines...) Expand all
39 36
40 var process = new ScheduledProcess.start( 37 var process = new ScheduledProcess.start(
41 p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")), 38 p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")),
42 ["arg1", "arg2"], 39 ["arg1", "arg2"],
43 environment: getEnvironment()); 40 environment: getEnvironment());
44 41
45 process.stdout.expect(consumeThrough("ok")); 42 process.stdout.expect(consumeThrough("ok"));
46 process.shouldExit(); 43 process.shouldExit();
47 }); 44 });
48 } 45 }
OLDNEW
« no previous file with comments | « test/global/binstubs/no_executables_flag_test.dart ('k') | test/global/binstubs/outdated_snapshot_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698