cacheinterface/redis_test.go
Tyler 4af5b3af83
All checks were successful
continuous-integration/drone/push Build is passing
Remove server dependencies as Drone does not support services
2019-10-02 20:36:45 -04:00

18 lines
274 B
Go

package cache
import (
"testing"
)
func Test_RedisURI(t *testing.T) {
cache, err := New("redis://127.0.0.1:6389")
if err != nil {
t.Fatal("Error creating cache:", err)
}
if _, ok := cache.(*RedisCache); !ok {
t.Fatal("Cache is not instance of RedisCache")
}
}