From 13cac89efcd613d68e70a623b71a82215f5d08e8 Mon Sep 17 00:00:00 2001 From: Henri Parquet <56651131+henripqt@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:06:13 +0200 Subject: [PATCH] Update modules/yugabytedb/yugabytedb_test.go Co-authored-by: Steven Hartland --- modules/yugabytedb/yugabytedb_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/yugabytedb/yugabytedb_test.go b/modules/yugabytedb/yugabytedb_test.go index 4735157e82..bb149d1295 100644 --- a/modules/yugabytedb/yugabytedb_test.go +++ b/modules/yugabytedb/yugabytedb_test.go @@ -43,13 +43,11 @@ func TestYugabyteDB_YSQL(t *testing.T) { t.Run("Run with custom options", func(t *testing.T) { ctx := context.Background() - opts := []testcontainers.ContainerCustomizer{ + ctr, err := yugabytedb.Run(ctx, "yugabytedb/yugabyte:2024.1.3.0-b105", yugabytedb.WithYSQLDatabaseName("custom-db"), yugabytedb.WithYSQLDatabaseUser("custom-user"), yugabytedb.WithYSQLDatabasePassword("custom-password"), - } - - ctr, err := yugabytedb.Run(ctx, "yugabytedb/yugabyte:2024.1.3.0-b105", opts...) + ) testcontainers.CleanupContainer(t, ctr) require.NoError(t, err)