diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-22 14:46:13 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2023-08-31 09:29:18 +0300 |
commit | 97b4c2fdfb7fe78be017fd3819a1849039a02377 (patch) | |
tree | a8c1b8f1835227cb45f7d8c56148fe2dae97d165 /internal/praefect/info_service_test.go | |
parent | a3dedd2661cada20c703b79d93c6fbbb62d48f90 (diff) |
Replace NewLogger calls with SharedLogger calls in tests
This commit wires the tests to call SharedLogger instead of NewLogger
so they'll use the test case's shared logger. This way the log output
is printed to the same logger and is ordered.
Diffstat (limited to 'internal/praefect/info_service_test.go')
-rw-r--r-- | internal/praefect/info_service_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/info_service_test.go b/internal/praefect/info_service_test.go index 1b2a1ead4..d07ede6aa 100644 --- a/internal/praefect/info_service_test.go +++ b/internal/praefect/info_service_test.go @@ -67,7 +67,7 @@ func TestInfoService_RepositoryReplicas(t *testing.T) { ctx := testhelper.Context(t) db := testdb.New(t) - logger := testhelper.NewLogger(t) + logger := testhelper.SharedLogger(t) // the only thing used from the config is the grpc_latency_buckets which is not relevant for the test txManager := transactions.NewManager(config.Config{}) sidechannelRegistry := sidechannel.NewRegistry() |