dao_test.go 353 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. var (
  8. d *Dao
  9. )
  10. func TestPingMc(t *testing.T) {
  11. var (
  12. c = context.Background()
  13. )
  14. convey.Convey("Ping", t, func(ctx convey.C) {
  15. err := d.PingMc(c)
  16. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldBeNil)
  18. })
  19. })
  20. }