Skip to content

Commit

Permalink
Remove proposal replays
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffa5 committed Aug 21, 2023
1 parent cdb318d commit 264a16b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,27 +294,13 @@ def test_public_prefix(governance_client, http1_client, sandbox):
public_domain = txn.get_public_domain()
assert len(public_domain.get_tables()) == 1

# setting an existing prefix is ok
proposal = governance.Proposal()
proposal.set_public_prefix(prefix)
res = governance_client.propose(proposal)
proposal_id = res.proposal_id
governance_client.accept(proposal_id)

# removing an existing prefix is ok
proposal = governance.Proposal()
proposal.remove_public_prefix(prefix)
res = governance_client.propose(proposal)
proposal_id = res.proposal_id
governance_client.accept(proposal_id)

# and removing one that doesn't exist is ok too
proposal = governance.Proposal()
proposal.remove_public_prefix(prefix)
res = governance_client.propose(proposal)
proposal_id = res.proposal_id
governance_client.accept(proposal_id)

# setting a new key now doesn't end up public
res = http1_client.put(f"{prefix}/test", "my secret")
term = int(res.json()["header"]["raftTerm"])
Expand Down

0 comments on commit 264a16b

Please sign in to comment.