mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
14 lines
326 B
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)
|
|
}
|