Blob Blame History Raw
From 4ea77e9c0982f661d0072dd47c7c894158153c23 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m@gmail.com>
Date: Thu, 30 May 2019 20:45:16 +0200
Subject: [PATCH] Fix Sprintf format for p.To, p.CC and p.BCC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
---
 helpers/mail/mail_v3_test.go | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/helpers/mail/mail_v3_test.go b/helpers/mail/mail_v3_test.go
index 69edf4a..f981249 100644
--- a/helpers/mail/mail_v3_test.go
+++ b/helpers/mail/mail_v3_test.go
@@ -225,13 +225,13 @@ func TestV3NewPersonalization(t *testing.T) {
 	assert.NotNil(t, p, "NewPersonalization() shouldn't return nil")
 
 	assert.NotNil(t, p.To, "To should't be nil")
-	assert.Equal(t, 0, len(p.To), fmt.Sprintf("Length of %s should be 0", p.To))
+	assert.Equal(t, 0, len(p.To), fmt.Sprintf("Length of %v should be 0", p.To))
 
 	assert.NotNil(t, p.CC, "CC should't be nil")
-	assert.Equal(t, 0, len(p.CC), fmt.Sprintf("Length of %s should be 0", p.CC))
+	assert.Equal(t, 0, len(p.CC), fmt.Sprintf("Length of %v should be 0", p.CC))
 
 	assert.NotNil(t, p.BCC, "BCC should't be nil")
-	assert.Equal(t, 0, len(p.BCC), fmt.Sprintf("Length of %s should be 0", p.BCC))
+	assert.Equal(t, 0, len(p.BCC), fmt.Sprintf("Length of %v should be 0", p.BCC))
 
 	assert.NotNil(t, p.Headers, "Headers should't be nil")
 	assert.Equal(t, 0, len(p.Headers), fmt.Sprintf("Length of %s should be 0", p.Headers))
-- 
2.21.0