mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:30:56 +00:00
sleep some time for send mail
This commit is contained in:
parent
2424618163
commit
4922237847
@ -2,10 +2,12 @@ package logs
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSmtp(t *testing.T) {
|
func TestSmtp(t *testing.T) {
|
||||||
log := NewLogger(10000)
|
log := NewLogger(10000)
|
||||||
log.SetLogger("smtp", `{"username":"beegotest@gmail.com","password":"xxxxxxxx","host":"smtp.gmail.com:587","sendTos":["xiemengjun@gmail.com"]}`)
|
log.SetLogger("smtp", `{"username":"beegotest@gmail.com","password":"xxxxxxxx","host":"smtp.gmail.com:587","sendTos":["xiemengjun@gmail.com"]}`)
|
||||||
log.Critical("sendmail critical")
|
log.Critical("sendmail critical")
|
||||||
|
time.Sleep(time.Second * 30)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user