bump some self-test timeouts

This commit is contained in:
Emily Stark
2014-06-16 18:13:00 -07:00
parent 566302f1cb
commit 7336bf901b
2 changed files with 9 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ selftest.define("login", ['net'], function () {
// even if you are already logged in.
for (var i = 0; i < 2; i++) {
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("test\n");
run.matchErr("Password:");
@@ -31,6 +32,7 @@ selftest.define("login", ['net'], function () {
// Leaving username blank, or getting the password wrong, doesn't
// reprompt. It also doesn't log you out.
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("\n");
run.matchErr("Password:");
@@ -40,6 +42,7 @@ selftest.define("login", ['net'], function () {
run.expectExit(1);
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("test\n");
run.matchErr("Password:");
@@ -49,6 +52,7 @@ selftest.define("login", ['net'], function () {
run.expectExit(1);
run = s.run('login');
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("test\n");
run.matchErr("Password:");
@@ -80,6 +84,7 @@ selftest.define("login", ['net'], function () {
// Test login failure
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("test\n");
run.matchErr("Password:");
@@ -91,6 +96,7 @@ selftest.define("login", ['net'], function () {
// Logging in with a capitalized username should work (usernames are
// case-insensitive).
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("TeSt\n");
run.matchErr("Password:");
@@ -107,6 +113,7 @@ selftest.define("login", ['net'], function () {
// Logging in with a capitalized password should NOT work (can't be
// too safe...)
run = s.run("login");
run.waitSecs(commandTimeoutSecs);
run.matchErr("Username:");
run.write("test\n");
run.matchErr("Password:");

View File

@@ -180,7 +180,7 @@ selftest.define("run --once", function () {
s.cd("onceapp");
s.set("RUN_ONCE_OUTCOME", "mongo");
run = s.run("--once");
run.waitSecs(15);
run.waitSecs(30);
run.expectExit(86);
});
@@ -199,7 +199,7 @@ selftest.define("run errors", function () {
var run = s.run("-p", proxyPort);
_.times(3, function () {
run.waitSecs(3);
run.waitSecs(30);
run.match("Unexpected mongo exit code 48. Restarting.");
});
run.waitSecs(3);