mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #40054 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. - Already added in previous PR ## Testing - [x] Added/updated automated tests - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Updated internal logging infrastructure across multiple server components to use standardized logging methods and improved context propagation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
14 lines
375 B
Go
14 lines
375 B
Go
package pubsub
|
|
|
|
import (
|
|
"log/slog"
|
|
"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, slog.New(slog.DiscardHandler))
|
|
}
|