Use the same timeouts in login tests as everywhere else

This commit is contained in:
Emily Stark
2014-02-19 15:49:06 -08:00
parent 2ef965f34e
commit 2f6bb62170

View File

@@ -23,7 +23,7 @@ selftest.define("login", ['net'], function () {
run.write("test\n");
run.matchErr("Password:");
run.write("testtest\n");
run.waitSecs(5);
run.waitSecs(commandTimeoutSecs);
run.matchErr("Logged in as test.");
run.expectExit(0);
}
@@ -35,7 +35,7 @@ selftest.define("login", ['net'], function () {
run.write("\n");
run.matchErr("Password:");
run.write("whatever\n");
run.waitSecs(5);
run.waitSecs(commandTimeoutSecs);
run.matchErr("failed");
run.expectExit(1);