fleet/server/pubsub/testing_utils.go

14 lines
326 B
Go

package pubsub
import (
"testing"
"github.com/fleetdm/fleet/v4/server/datastore/redis/redistest"
)
func SetupRedisForTest(t *testing.T, cluster, readReplica bool) *redisQueryResults {
const dupResults = false
pool := redistest.SetupRedis(t, cluster, false, readReplica)
return NewRedisQueryResults(pool, dupResults)
}