(t *testing.T)
| 247 | } |
| 248 | |
| 249 | func TestAsyncCache_RedisCache_instantiation(t *testing.T) { |
| 250 | s := miniredis.RunT(t) |
| 251 | var redisCfg = config.Cache{ |
| 252 | Name: "test", |
| 253 | Mode: "redis", |
| 254 | Redis: config.RedisCacheConfig{ |
| 255 | Addresses: []string{s.Addr()}, |
| 256 | }, |
| 257 | Expire: config.Duration(cacheTTL), |
| 258 | MaxPayloadSize: config.ByteSize(100000000), |
| 259 | } |
| 260 | |
| 261 | _, err := NewAsyncCache(redisCfg, 1*time.Second) |
| 262 | if err != nil { |
| 263 | t.Fatalf("could not instanciate redis async cache because of the following error: %s", err) |
| 264 | } |
| 265 | } |
| 266 | |
| 267 | func TestAsyncCache_RedisCache_TLS(t *testing.T) { |
| 268 | cfg := config.TLS{ |
nothing calls this directly
no test coverage detected