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.
22 lines
399 B
22 lines
399 B
package mredis
|
|
|
|
import (
|
|
. "testing"
|
|
|
|
"github.com/mediocregopher/mediocre-go-lib/mtest"
|
|
|
|
"github.com/mediocregopher/radix/v3"
|
|
)
|
|
|
|
func TestRedis(t *T) {
|
|
cmp := mtest.Component()
|
|
redis := InstRedis(cmp)
|
|
mtest.Run(cmp, t, func() {
|
|
var info string
|
|
if err := redis.Do(radix.Cmd(&info, "INFO")); err != nil {
|
|
t.Fatal(err)
|
|
} else if len(info) < 0 {
|
|
t.Fatal("empty info return")
|
|
}
|
|
})
|
|
}
|
|
|