Skip to content

Commit

Permalink
Fix governance test
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Dec 12, 2024
1 parent e2e126c commit 727f1d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/governance_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,16 @@ def fmt_str(data: bytes) -> str:
primary, backups = network.find_nodes()
for node in (primary, *backups):
ledger_dirs = node.remote.ledger_paths()
assert ccf.read_ledger.run(paths=ledger_dirs, tables_format_rules=format_rule)
assert ccf.read_ledger.run(
paths=ledger_dirs,
print_mode=ccf.read_ledger.PrintMode.Contents,
tables_format_rules=format_rule,
)

snapshot_dir = network.get_committed_snapshots(primary)
assert ccf.read_ledger.run(
paths=[os.path.join(snapshot_dir, os.listdir(snapshot_dir)[-1])],
print_mode=ccf.read_ledger.PrintMode.Contents,
is_snapshot=True,
tables_format_rules=format_rule,
)
Expand Down

0 comments on commit 727f1d3

Please sign in to comment.