online_test.go 362 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_OnlineCount(t *testing.T) {
  8. convey.Convey("test online num", t, func(ctx convey.C) {
  9. aid := int64(17592153)
  10. cid := int64(28727160)
  11. data, err := d.OnlineCount(context.Background(), aid, cid)
  12. ctx.So(err, convey.ShouldBeNil)
  13. ctx.Println(data)
  14. })
  15. }