redis_test.go 251 B

123456789101112131415
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_PingRedis(t *testing.T) {
  8. Convey("ping redis", t, WithDao(func(d *Dao) {
  9. err := d.pingRedis(context.Background())
  10. So(err, ShouldBeNil)
  11. }))
  12. }