From b563c2a217179ef96353e8526eda671b9f5edffc Mon Sep 17 00:00:00 2001 From: Gusted Date: Thu, 6 Mar 2025 12:21:52 +0000 Subject: [PATCH] Use `context.Background` as context --- modules/log/logger_impl_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/log/logger_impl_test.go b/modules/log/logger_impl_test.go index 59276a83f4..d5b0a71497 100644 --- a/modules/log/logger_impl_test.go +++ b/modules/log/logger_impl_test.go @@ -4,6 +4,7 @@ package log import ( + "context" "testing" "github.com/stretchr/testify/assert" @@ -18,7 +19,7 @@ func TestLog(t *testing.T) { Level: INFO, }) - logger := NewLoggerWithWriters(t.Context(), "test", bufferWriter) + logger := NewLoggerWithWriters(context.Background(), "test", bufferWriter) testGeneric(logger, "I'm the generic value!") logger.Close()