16 lines
251 B
Go
16 lines
251 B
Go
|
package dao
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
. "github.com/smartystreets/goconvey/convey"
|
||
|
)
|
||
|
|
||
|
func Test_PingRedis(t *testing.T) {
|
||
|
Convey("ping redis", t, WithDao(func(d *Dao) {
|
||
|
err := d.pingRedis(context.Background())
|
||
|
So(err, ShouldBeNil)
|
||
|
}))
|
||
|
}
|