go-common/app/job/main/web-goblin/dao/web/dynamic_test.go

23 lines
443 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package web
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestWebPushAll(t *testing.T) {
var (
c = context.Background()
msg = `{"1":64060766,"180":23753334,"31":49310729,"live":516587}`
ip = "127.0.0.1"
)
convey.Convey("PushAll", t, func(ctx convey.C) {
err := d.PushAll(c, msg, ip)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
})
})
}