Skip to content

Commit 7abb4e3

Browse files
authored
Merge pull request IntersectMBO#1198 from mkoura/xfail_on_issue_3859
XFAIL on node issue #3859
2 parents 406bbac + 918e830 commit 7abb4e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cardano_node_tests/tests/test_ledger_state.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ def test_stake_snapshot(self, cluster: clusterlib.ClusterLib): # noqa: C901
5353
if len(stake_pool_ids) > 200:
5454
pytest.skip("Skipping on this testnet, there's too many pools.")
5555

56-
ledger_state = clusterlib_utils.get_ledger_state(cluster_obj=cluster)
56+
# TODO: xfail for node issue #3859
57+
try:
58+
ledger_state = clusterlib_utils.get_ledger_state(cluster_obj=cluster)
59+
except AssertionError as err:
60+
if "Invalid numeric literal at line" in str(err):
61+
pytest.xfail("expected JSON, got CBOR - see node issue #3859")
62+
raise
63+
5764
clusterlib_utils.save_ledger_state(
5865
cluster_obj=cluster,
5966
state_name=temp_template,

0 commit comments

Comments
 (0)