OLD | NEW |
(Empty) | |
| 1 library pub_tests; |
| 2 import 'package:scheduled_test/scheduled_test.dart'; |
| 3 import '../../descriptor.dart' as d; |
| 4 import '../../test_pub.dart'; |
| 5 main() { |
| 6 initConfig(); |
| 7 integration('does not request versions if the lockfile is up to date', () { |
| 8 servePackages((builder) { |
| 9 builder.serve("foo", "1.0.0"); |
| 10 builder.serve("foo", "1.1.0"); |
| 11 builder.serve("foo", "1.2.0"); |
| 12 }); |
| 13 d.appDir({ |
| 14 "foo": "any" |
| 15 }).create(); |
| 16 pubGet(); |
| 17 getRequestedPaths(); |
| 18 pubGet(); |
| 19 d.cacheDir({ |
| 20 "foo": "1.2.0" |
| 21 }).validate(); |
| 22 d.packagesDir({ |
| 23 "foo": "1.2.0" |
| 24 }).validate(); |
| 25 getRequestedPaths().then((paths) { |
| 26 expect(paths, isEmpty); |
| 27 }); |
| 28 }); |
| 29 } |
OLD | NEW |