Skip to content

Commit e519870

Browse files
committed
feat(tests): skip token tests on long running testnets
The test parameter for using tokens is now conditionally skipped on long running testnets. This is to prevent leaving large amounts of ADA on UTxOs with tokens, which are not currently reclaimed.
1 parent 47c8516 commit e519870

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

cardano_node_tests/tests/tests_plutus_v2/test_spend_build.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,20 @@ def test_txout_locking(
213213

214214
@allure.link(helpers.get_vcs_link())
215215
@pytest.mark.parametrize("use_inline_datum", (True, False), ids=("inline_datum", "datum_file"))
216-
@pytest.mark.parametrize("use_token", (True, False), ids=("with_token", "without_token"))
216+
@pytest.mark.parametrize(
217+
"use_token",
218+
(
219+
# This test param should not run on long running testnets, because it leavea
220+
# large amounts of ADA on UTxOs with tokens, and ADA on such UTxOs is not currently
221+
# reclaimed.
222+
pytest.param(
223+
True,
224+
marks=common.SKIPIF_ON_TESTNET,
225+
),
226+
False,
227+
),
228+
ids=("with_token", "without_token"),
229+
)
217230
@pytest.mark.parametrize(
218231
"use_reference_script",
219232
(True, False),

0 commit comments

Comments
 (0)