mirror of https://github.com/jackc/pgx.git
Skip tests using pg_terminate_backend on CockroachDB
parent
19441eee28
commit
c8a7c89f15
|
@ -639,6 +639,10 @@ func TestFatalRxError(t *testing.T) {
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
defer closeConn(t, conn)
|
defer closeConn(t, conn)
|
||||||
|
|
||||||
|
if conn.PgConn().ParameterStatus("crdb_version") != "" {
|
||||||
|
t.Skip("Server does not support pg_terminate_backend() (https://github.com/cockroachdb/cockroach/issues/35897)")
|
||||||
|
}
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func() {
|
go func() {
|
||||||
|
@ -675,6 +679,10 @@ func TestFatalTxError(t *testing.T) {
|
||||||
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
defer closeConn(t, conn)
|
defer closeConn(t, conn)
|
||||||
|
|
||||||
|
if conn.PgConn().ParameterStatus("crdb_version") != "" {
|
||||||
|
t.Skip("Server does not support pg_terminate_backend() (https://github.com/cockroachdb/cockroach/issues/35897)")
|
||||||
|
}
|
||||||
|
|
||||||
otherConn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
otherConn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
|
||||||
defer otherConn.Close(context.Background())
|
defer otherConn.Close(context.Background())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue