go-common/app/service/live/wallet/dao/pub_test.go

30 lines
418 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
. "github.com/smartystreets/goconvey/convey"
"testing"
)
type testMsg struct {
Name string
Age int64
}
func TestDao_Pub(t *testing.T) {
Convey("pub", t, func() {
once.Do(startService)
//startSubDataBus()
//msgs := subDataBus.Messages()
var uid int64 = 1
u := testMsg{
Name: "test",
Age: 23,
}
err := d.Pub(ctx, uid, &u)
So(err, ShouldBeNil)
t.Logf("pub")
})
}