Skip to content

Commit

Permalink
Update modules/yugabytedb/yugabytedb_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Hartland <[email protected]>
  • Loading branch information
henripqt and stevenh authored Oct 15, 2024
1 parent a51e4dd commit 13cac89
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modules/yugabytedb/yugabytedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 13cac89

Please sign in to comment.