From 95504ad35bde795b7716ffffff15b2efe7cb56ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 10 Oct 2024 13:58:15 +0200 Subject: [PATCH] chor: better message --- reaper.go | 4 +++- reaper_test.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/reaper.go b/reaper.go index 6e2cc23..8e53351 100644 --- a/reaper.go +++ b/reaper.go @@ -140,7 +140,9 @@ func newReaper(ctx context.Context, options ...reaperOption) (*reaper, error) { return nil, fmt.Errorf("listen: %w", err) } - r.logger.Info("Started", fieldAddress, r.listener.Addr().String()) + // This log message, in uppercase, is in use in different Testcontainers libraries, + // so it is important to keep it as is to not break the current behavior of the libraries. + r.logger.Info("Started client processing") return r, nil } diff --git a/reaper_test.go b/reaper_test.go index 3e11f07..871c494 100644 --- a/reaper_test.go +++ b/reaper_test.go @@ -280,7 +280,7 @@ func testReaperRun(t *testing.T, tc *runTest) (string, error) { // Standard checks for basic functionality. log := buf.String() - require.Contains(t, log, "Started address="+addr) + require.Contains(t, log, "Started client processing") require.Contains(t, log, "client connected") require.Contains(t, log, "adding filter")