From a0172282a2738af3a33c7586b161a6e069f23aac Mon Sep 17 00:00:00 2001
From: Allen Gilliland <agilliland@gmail.com>
Date: Thu, 29 Oct 2015 21:16:41 -0700
Subject: [PATCH] fix up unit test failure.

---
 test/metabase/email/messages_test.clj | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/test/metabase/email/messages_test.clj b/test/metabase/email/messages_test.clj
index 72d5862554c..d2247cdca82 100644
--- a/test/metabase/email/messages_test.clj
+++ b/test/metabase/email/messages_test.clj
@@ -27,13 +27,10 @@
   `(binding [email/*send-email-fn* fake-inbox-email-fn]
      (reset-inbox!)
      ;; Push some fake settings for SMTP username + password, and restore originals when done
-     (let [orig-username# (email/email-smtp-username)
-           orig-password# (email/email-smtp-password)]
-       (email/email-smtp-username "fake_smtp_username")
-       (email/email-smtp-password "ABCD1234!!")
+     (let [orig-hostname# (email/email-smtp-host)]
+       (email/email-smtp-host "fake_smtp_host")
        (try ~@body
-            (finally (email/email-smtp-username orig-username#)
-                     (email/email-smtp-password orig-password#))))))
+            (finally (email/email-smtp-host orig-hostname#))))))
 
 ;; new user email
 ;; NOTE: we are not validating the content of the email body namely because it's got randomized elements and thus
-- 
GitLab