mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
aha! This is the test that fails that unearths the weird downloading bit
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Package.describe({
|
||||
summary: "Given the set of the constraints, picks a satisfying configuration",
|
||||
version: "1.0.0"
|
||||
version: "1.0.1"
|
||||
});
|
||||
|
||||
Npm.depends({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Package.describe({
|
||||
summary: "The Meteor command-line tool",
|
||||
version: '1.0.18'
|
||||
version: '1.0.19'
|
||||
});
|
||||
|
||||
Package.includeTool([
|
||||
|
||||
@@ -33,7 +33,8 @@ selftest.define("autoupdate", ['checkout'], function () {
|
||||
warehouse: {
|
||||
v1: { recommended: true},
|
||||
v2: { recommended: true },
|
||||
v3: { }
|
||||
v3: { },
|
||||
v4: { }
|
||||
}
|
||||
});
|
||||
var run;
|
||||
@@ -74,6 +75,19 @@ selftest.define("autoupdate", ['checkout'], function () {
|
||||
// If we are not at the latest version of Meteor, at startup, we get a
|
||||
// boring prompt to update (not a banner since we didn't set one for v1).
|
||||
s.write('.meteor/release', 'METEOR-CORE@v1');
|
||||
|
||||
// We don't see any information if we run a simple command like list.
|
||||
run = s.run("list");
|
||||
run.forbidAll("New hotness v2 being downloaded");
|
||||
run.expectExit(0);
|
||||
run.stop();
|
||||
|
||||
run = s.run("--version");
|
||||
run.read("Meteor v1\n");
|
||||
run.expectEnd();
|
||||
run.expectExit(0);
|
||||
|
||||
// We do see a boring prompt though.
|
||||
run = s.run("--port", "22000");
|
||||
run.waitSecs(5);
|
||||
run.match("v2");
|
||||
@@ -171,4 +185,12 @@ selftest.define("autoupdate", ['checkout'], function () {
|
||||
run.read("Meteor v3\n");
|
||||
run.expectEnd();
|
||||
run.expectExit(0);
|
||||
|
||||
// Recommend v4 and make sure there are no outputs.
|
||||
recommend(s, "v4");
|
||||
run = s.run("--version");
|
||||
run.read("Meteor v3\n");
|
||||
run.expectEnd();
|
||||
run.expectExit(0);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user