From e67455a9c2168b9f07d873a00d414ac0ad351173 Mon Sep 17 00:00:00 2001 From: "K. Pastor-Gerte" Date: Mon, 25 Mar 2024 17:44:40 +0300 Subject: [PATCH] update postgres_pgx test plugin --- postgres_pgx/plugin.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postgres_pgx/plugin.go b/postgres_pgx/plugin.go index 889989a..b88b289 100755 --- a/postgres_pgx/plugin.go +++ b/postgres_pgx/plugin.go @@ -117,6 +117,10 @@ func NewTestPlugin(ctx context.Context, cfg TestConfig) (Plugin, error) { opts.Username, opts.Password, opts.Host, opts.Port, opts.Database, opts.SSLMode) } + if opts.Config.MaxPoolSize == 0 { + opts.Config.MaxPoolSize = 1 + } + if opts.RunContainer { if opts.ContainerImage == "" { opts.ContainerImage = "postgres:15.2"