From: Daniele Varrazzo Date: Sun, 12 Jun 2022 00:43:20 +0000 (+0200) Subject: test(crdb): mark a few tests slow X-Git-Tag: 3.1~49^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebc682be98c522e3ab8ee591d9da83e08dd7fbcc;p=thirdparty%2Fpsycopg.git test(crdb): mark a few tests slow --- diff --git a/tests/crdb/test_connection.py b/tests/crdb/test_connection.py index be5201932..e3d4b4673 100644 --- a/tests/crdb/test_connection.py +++ b/tests/crdb/test_connection.py @@ -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): diff --git a/tests/crdb/test_connection_async.py b/tests/crdb/test_connection_async.py index 69e6412a6..6fb8fdfe8 100644 --- a/tests/crdb/test_connection_async.py +++ b/tests/crdb/test_connection_async.py @@ -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()