mail_test.go 332 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. var (
  7. receiver = "hujianping"
  8. subject = "test of melloi"
  9. content = "this is test content"
  10. )
  11. func Test_Mail(t *testing.T) {
  12. Convey("test QueryOrder", t, func() {
  13. err := s.SendMail(receiver, subject, content)
  14. So(err, ShouldBeNil)
  15. })
  16. }