Index: test/packages_file_test.dart |
diff --git a/test/packages_file_test.dart b/test/packages_file_test.dart |
index ef810f08e3a9354521772935c643373d04cba3c1..8408133a0f73f64a152dbd0bc0ae05e0b06a9384 100644 |
--- a/test/packages_file_test.dart |
+++ b/test/packages_file_test.dart |
@@ -2,6 +2,8 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE d.file. |
+import 'package:pub/src/exit_codes.dart' as exit_codes; |
+ |
import 'descriptor.dart' as d; |
import 'test_pub.dart'; |
@@ -60,7 +62,10 @@ main() { |
]).create(); |
pubCommand(command, args: ['--offline'], |
- error: "Could not find package foo in cache.\n"); |
+ error: "Could not find package foo in cache.\n" |
+ "Depended on by:\n" |
+ "- myapp", |
+ exitCode: exit_codes.UNAVAILABLE); |
d.dir(appPath, [d.nothing('.packages')]).validate(); |
}); |