Fix: unit test IllegalStateException

Reason is the gerrit.basePath is not configured.

Change-Id: If0888a3d268b0536ac0cfb6dacea675cbd4ea016
This commit is contained in:
Bruce Zu
2014-04-14 13:10:52 +08:00
parent 480a8ecf78
commit 4255c98b62

View File

@@ -131,6 +131,7 @@ public class GerritServer {
cfg.setString("httpd", null, "listenUrl", url);
cfg.setString("sshd", null, "listenAddress", format(sshd));
cfg.setString("cache", null, "directory", null);
cfg.setString("gerrit", null, "basePath", "git");
cfg.setBoolean("sendemail", null, "enable", false);
cfg.setInt("cache", "projects", "checkFrequency", 0);
cfg.setInt("plugins", null, "checkFrequency", 0);