From 8f70c1582c6fb4a35637328b3a157eaf5c811a36 Mon Sep 17 00:00:00 2001 From: d068777 Date: Mon, 17 Aug 2020 17:10:11 +0200 Subject: [PATCH] Add missing error check for TestNewMessageWithTitled --- message_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/message_test.go b/message_test.go index b7f4a38..2333d05 100644 --- a/message_test.go +++ b/message_test.go @@ -243,7 +243,10 @@ func TestMutlipartRequest(t *testing.T) { if tc.attachmentSize > 0 { buf := make([]byte, tc.attachmentSize) attachement := bytes.NewBuffer(buf) - message.AddAttachment(attachement) + err := message.AddAttachment(attachement) + if err != nil { + t.Fatalf("unexpected error: %s", err.Error()) + } } req, err := message.multipartRequest("pToken", "rToken", "url")