fleet/server/pubsub/testing_utils.go

14 lines
332 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, "zz", cluster, false, readReplica)
return NewRedisQueryResults(pool, dupResults)
}