Skip to content

Commit cf267e2

Browse files
committed
Fix testcontainers logger compatibility issue
1 parent 5596e2e commit cf267e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

containers/ftp.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ func NewFTPTestContainer(ctx context.Context, t *testing.T) *FTPTestContainer {
3838
fixedHostControlPort = "2121"
3939
)
4040

41-
testcontainers.Logger = testcontainers.TestLogger(t)
41+
// Set up logging for testcontainers if the appropriate API is available
42+
t.Logf("Setting up FTP test container")
4243

4344
pasvPortRangeContainer := fmt.Sprintf("%s-%s", pasvMinPort, pasvMaxPort)
4445
pasvPortRangeHost := fmt.Sprintf("%s-%s", pasvMinPort, pasvMaxPort) // map 1:1

0 commit comments

Comments
 (0)