]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test(crdb): mark a few tests slow
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 12 Jun 2022 00:43:20 +0000 (02:43 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Jul 2022 11:58:34 +0000 (12:58 +0100)
tests/crdb/test_connection.py
tests/crdb/test_connection_async.py

index be5201932b9daa5336a63db6f6fbf62c681c2e81..e3d4b46731da67e4676e036ce8a1d1fed8b0096d 100644 (file)
@@ -41,6 +41,7 @@ def test_tpc_recover(dsn):
             conn.tpc_recover()
 
 
+@pytest.mark.slow
 def test_broken_connection(conn):
     cur = conn.cursor()
     with pytest.raises(psycopg.DatabaseError):
@@ -48,6 +49,7 @@ def test_broken_connection(conn):
     assert conn.closed
 
 
+@pytest.mark.slow
 def test_broken(conn):
     (session_id,) = conn.execute("show session_id").fetchone()
     with pytest.raises(psycopg.OperationalError):
index 69e6412a6c332dbbdc1c59a9976ee4fd895725cf..6fb8fdfe865c78cdeba3f5fe82f71a4be6b41809 100644 (file)
@@ -39,6 +39,7 @@ async def test_tpc_recover(dsn):
             await conn.tpc_recover()
 
 
+@pytest.mark.slow
 async def test_broken_connection(aconn):
     cur = aconn.cursor()
     with pytest.raises(psycopg.DatabaseError):
@@ -46,6 +47,7 @@ async def test_broken_connection(aconn):
     assert aconn.closed
 
 
+@pytest.mark.slow
 async def test_broken(aconn):
     cur = await aconn.execute("show session_id")
     (session_id,) = await cur.fetchone()