Skip to content

Commit

Permalink
Modified TestSend in sendgrid_test.go to check return value of Send
Browse files Browse the repository at this point in the history
  • Loading branch information
Xercoy committed Sep 2, 2014
1 parent b39babe commit 3f5b246
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sendgrid_test.go
Expand Up @@ -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.