20 lines
405 B
Go
20 lines
405 B
Go
package health_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"fiskerinc.com/modules/health"
|
|
"fiskerinc.com/modules/redis"
|
|
"fiskerinc.com/modules/redis/tester"
|
|
"fiskerinc.com/modules/testhelper"
|
|
)
|
|
|
|
func TestRedisCheck(t *testing.T) {
|
|
redis.MockRedisConnection()
|
|
health := health.NewRedisHealth(tester.NewMockClientPool())
|
|
|
|
err := health.Check(context.Background())
|
|
testhelper.NoError(t, "No error", err)
|
|
}
|