From e404e2eb95309d15e4e0ae8e3fa36278aaf22613 Mon Sep 17 00:00:00 2001 From: ekatek Date: Thu, 17 Jul 2014 16:45:20 -0700 Subject: [PATCH] aha! This is the test that fails that unearths the weird downloading bit --- packages/constraint-solver/package.js | 2 +- packages/meteor-tool/package.js | 2 +- tools/tests/autoupdate.js | 24 +++++++++++++++++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/packages/constraint-solver/package.js b/packages/constraint-solver/package.js index 1fdffd193d..8f87f51cdc 100644 --- a/packages/constraint-solver/package.js +++ b/packages/constraint-solver/package.js @@ -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({ diff --git a/packages/meteor-tool/package.js b/packages/meteor-tool/package.js index 2dfe2917ed..583dc7bc6a 100644 --- a/packages/meteor-tool/package.js +++ b/packages/meteor-tool/package.js @@ -1,6 +1,6 @@ Package.describe({ summary: "The Meteor command-line tool", - version: '1.0.18' + version: '1.0.19' }); Package.includeTool([ diff --git a/tools/tests/autoupdate.js b/tools/tests/autoupdate.js index c908e7b1d2..1fc1e1bfca 100644 --- a/tools/tests/autoupdate.js +++ b/tools/tests/autoupdate.js @@ -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); + });