mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
make test more convincing
This commit is contained in:
@@ -1,2 +1 @@
|
||||
// Write your package code here!
|
||||
console.log("Testing a thing");
|
||||
global.DEBUG_ONLY_LOADED = true;
|
||||
|
||||
@@ -289,18 +289,18 @@ selftest.define("add packages to app", ["net"], function () {
|
||||
run = s.run("add", "debug-only");
|
||||
run.match("debug-only");
|
||||
run.expectExit(0);
|
||||
run = s.run();
|
||||
run.waitSecs(15);
|
||||
run.match("Testing a thing");
|
||||
run.match("Started");
|
||||
run.stop();
|
||||
|
||||
run = s.run("--production");
|
||||
s.mkdir("server");
|
||||
s.write("server/debug.js",
|
||||
"process.exit(global.DEBUG_ONLY_LOADED ? 234 : 235)");
|
||||
|
||||
run = s.run("--once");
|
||||
run.waitSecs(15);
|
||||
run.match("Started MongoDB.\n");
|
||||
run.waitSecs(5);
|
||||
run.read("=> Starting your app");
|
||||
run.stop();
|
||||
run.expectExit(234);
|
||||
|
||||
run = s.run("--once", "--production");
|
||||
run.waitSecs(15);
|
||||
run.expectExit(235);
|
||||
});
|
||||
|
||||
// Add a package that adds files to specific client architectures.
|
||||
|
||||
Reference in New Issue
Block a user