monitor_test.go 349 B

1234567891011121314151617
  1. package monitor
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/job/main/archive/conf"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func Test_Send(t *testing.T) {
  9. Convey("Send", t, func() {
  10. err := d.Send(context.TODO(), conf.Conf.WeChantUsers, "报警短信test", conf.Conf.WeChatToken, conf.Conf.WeChatSecret)
  11. So(err, ShouldBeNil)
  12. })
  13. }