Disable sending emails during acceptance tests

This prevents the test suite from spamming the local SMTP server by
trying to send messages to example.com.

Change-Id: I24274596c36564489b5f2f0b1621d32bec333ded
This commit is contained in:
Shawn Pearce
2013-08-10 15:00:21 -07:00
parent 50bc936427
commit ce6fe211bb

View File

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