mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
14 lines
332 B
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)
|
|
}
|