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)
}
