You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
418 B

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")
})
}