Skip to content

Commit

Permalink
chor: better message
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Oct 10, 2024
1 parent 3899cea commit 95504ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion reaper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion reaper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 95504ad

Please sign in to comment.