diff --git a/modules/cockroachdb/cockroachdb.go b/modules/cockroachdb/cockroachdb.go index e3948fe95d..98f2e00196 100644 --- a/modules/cockroachdb/cockroachdb.go +++ b/modules/cockroachdb/cockroachdb.go @@ -288,11 +288,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom } for _, opt := range opts { - if fn, ok := opt.(customizer); ok { - if err := fn.customize(ctr); err != nil { - return nil, fmt.Errorf("customize container: %w", err) - } - } if err := opt.Customize(&req); err != nil { return nil, fmt.Errorf("customize request: %w", err) } diff --git a/modules/cockroachdb/options.go b/modules/cockroachdb/options.go index 09bc4b52b3..738036d188 100644 --- a/modules/cockroachdb/options.go +++ b/modules/cockroachdb/options.go @@ -11,11 +11,6 @@ import ( // errInsecureWithPassword is returned when trying to use insecure mode with a password. var errInsecureWithPassword = errors.New("insecure mode cannot be used with a password") -// customizer is an interface for customizing a CockroachDB container. -type customizer interface { - customize(*CockroachDBContainer) error -} - // WithDatabase sets the name of the database to create and use. // This will be converted to lowercase as CockroachDB forces the database to be lowercase. // The database creation will be skipped if data exists in the `/cockroach/cockroach-data` directory within the container.