Index: test/must_pub_get_test.dart |
diff --git a/test/must_pub_get_test.dart b/test/must_pub_get_test.dart |
index 7a2136115fb93ac06c89150421e8a54d7df8cfe2..3ef503537d4ab2b1b6e6684a82626e10cfe41d6c 100644 |
--- a/test/must_pub_get_test.dart |
+++ b/test/must_pub_get_test.dart |
@@ -352,6 +352,29 @@ foo:http://example.com/ |
_runsSuccessfully(); |
}); |
+ |
+ group("an overridden dependency's SDK constraint is unmatched", () { |
+ setUp(() { |
+ globalPackageServer.add((builder) { |
+ builder.serve("bar", "1.0.0", pubspec: { |
+ "environment": {"sdk": "0.0.0-fake"} |
+ }); |
+ }); |
+ |
+ d.dir(appPath, [ |
+ d.pubspec({ |
+ "name": "myapp", |
+ "dependency_overrides": {"bar": "1.0.0"} |
+ }) |
+ ]).create(); |
+ |
+ pubGet(); |
+ |
+ _touch("pubspec.lock"); |
+ }); |
+ |
+ _runsSuccessfully(); |
+ }); |
}); |
} |