]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test(crdb): skip TPC tests
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 16 May 2022 20:49:02 +0000 (22:49 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Jul 2022 11:58:33 +0000 (12:58 +0100)
tests/test_tpc.py
tests/test_tpc_async.py

index fa2241bd372bf59e7558804e8ba0d88fea8808e1..e93049c5491aeacb3c1c727c09519c5c00c74e7d 100644 (file)
@@ -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])
index 30ca0ed4e5b3ccc90fabb3d6bc883c4c7c58e791..c08237627932f8ddea385d5a864c83e9552e1c17 100644 (file)
@@ -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):