Permalink
Browse files

Modified TestSend in sendgrid_test.go to check return value of Send

  • Loading branch information...
Xercoy committed Sep 2, 2014
1 parent b39babe commit 3f5b246bae20e521f3de780ed68f799137fd3f2a
Showing with 4 additions and 1 deletion.
  1. +4 −1 sendgrid_test.go
@@ -30,5 +30,8 @@ func TestSend(t *testing.T) {
m.AddTo("Test! <test@email.com>")
m.SetSubject("Test")
m.SetText("Text")
client.Send(m)

if e := client.Send(m); e != nil {
t.Errorf("Send failed to send email. Returned error: %v", e)
}
}

0 comments on commit 3f5b246

Please sign in to comment.