func OpenTestPoolLibPQ(t testing.TB) adapter.ConnPool {
	t.Helper()
	return OpenTestPoolMaxConnsLibPQ(t, defaultPoolConns, "", "")
}
OpenTestPoolLibPQ opens connections pool used in testing
package testing
import (
	"database/sql"
	"fmt"
	"testing"
	_ "github.com/lib/pq"  
	"github.com/stretchr/testify/require"
	"github.com/vgarvardt/gue/v3/adapter"
	"github.com/vgarvardt/gue/v3/adapter/libpq"
)
func OpenTestPoolMaxConnsLibPQ(t testing.TB, maxConnections int, gueSchema, secondSchema string) adapter.ConnPool {
	t.Helper()
	if (gueSchema == "" && secondSchema != "") || (gueSchema != "" && secondSchema == "") {
		require.Fail(t, "Both schemas should be either set or unset")
	}
	applyMigrations(gueSchema).Do(func() {
		doApplyMigrations(t, gueSchema)
	})
	dsn := testConnDSN(t)
	if gueSchema != "" && secondSchema != "" {
		dsn += fmt.Sprintf("&search_path=%s,%s", secondSchema, gueSchema)
	}
	db, err := sql.Open("postgres", dsn)
	require.NoError(t, err)
	db.SetMaxOpenConns(maxConnections)
	if secondSchema != "" {
		_, err := db.Exec("CREATE SCHEMA IF NOT EXISTS " + secondSchema)
		require.NoError(t, err)
	}
	pool := libpq.NewConnPool(db)
	t.Cleanup(func() {
		truncateAndClose(t, pool)
	})
	return pool
}