From 23ca7790be0efcb8e0b59795f66ca143d6828150 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Mon, 16 May 2022 22:49:02 +0200 Subject: [PATCH] test(crdb): skip TPC tests --- tests/test_tpc.py | 2 ++ tests/test_tpc_async.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_tpc.py b/tests/test_tpc.py index fa2241bd3..e93049c54 100644 --- a/tests/test_tpc.py +++ b/tests/test_tpc.py @@ -3,6 +3,8 @@ import pytest import psycopg from psycopg.pq import TransactionStatus +pytestmark = pytest.mark.crdb("skip", reason="2-phase commit") + def test_tpc_disabled(conn, pipeline): val = int(conn.execute("show max_prepared_transactions").fetchone()[0]) diff --git a/tests/test_tpc_async.py b/tests/test_tpc_async.py index 30ca0ed4e..c08237627 100644 --- a/tests/test_tpc_async.py +++ b/tests/test_tpc_async.py @@ -3,7 +3,10 @@ import pytest import psycopg from psycopg.pq import TransactionStatus -pytestmark = [pytest.mark.asyncio] +pytestmark = [ + pytest.mark.asyncio, + pytest.mark.crdb("skip", reason="2-phase commit"), +] async def test_tpc_disabled(aconn, apipeline): -- 2.47.3