From 9974365b733c02e9534f4db9a069ef2d24927e91 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Tue, 24 Jul 2018 12:26:19 +0530 Subject: [PATCH] smtp_configure_test.go: rename cleanSmtpVars --- api/smtp_configure_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/smtp_configure_test.go b/api/smtp_configure_test.go index 1b3125f..00fd3cc 100644 --- a/api/smtp_configure_test.go +++ b/api/smtp_configure_test.go @@ -5,7 +5,7 @@ import ( "testing" ) -func cleanSmtpVars() { +func smtpVarsClean() { for _, env := range []string{"SMTP_USERNAME", "SMTP_PASSWORD", "SMTP_HOST", "SMTP_PORT", "SMTP_FROM_ADDRESS"} { os.Setenv(env, "") } @@ -13,7 +13,7 @@ func cleanSmtpVars() { func TestSmtpConfigureBasics(t *testing.T) { failTestOnError(t, setupTestEnv()) - cleanSmtpVars() + smtpVarsClean() os.Setenv("SMTP_USERNAME", "test@example.com") os.Setenv("SMTP_PASSWORD", "hunter2") @@ -28,7 +28,7 @@ func TestSmtpConfigureBasics(t *testing.T) { func TestSmtpConfigureEmptyHost(t *testing.T) { failTestOnError(t, setupTestEnv()) - cleanSmtpVars() + smtpVarsClean() os.Setenv("SMTP_USERNAME", "test@example.com") os.Setenv("SMTP_PASSWORD", "hunter2") @@ -47,7 +47,7 @@ func TestSmtpConfigureEmptyHost(t *testing.T) { func TestSmtpConfigureEmptyAddress(t *testing.T) { failTestOnError(t, setupTestEnv()) - cleanSmtpVars() + smtpVarsClean() os.Setenv("SMTP_USERNAME", "test@example.com") os.Setenv("SMTP_PASSWORD", "hunter2")