Skip to content

Commit

Permalink
all gd branches covered in test
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsam4 committed Sep 4, 2018
1 parent 9691fa9 commit 7d54584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/GovernanceData.sol
Expand Up @@ -740,7 +740,7 @@ contract GovernanceData is Upgradeable { //solhint-disable-line
_pendingProposals++;
} else if (proposalStatus == 3) {
_acceptedProposals++;
} else if (proposalStatus >= 4) {
} else {
_rejectedProposals++;
}
}
Expand Down
1 change: 1 addition & 0 deletions test/12_GovernanceData.js
Expand Up @@ -117,6 +117,7 @@ contract('Governance Data', function([owner, taker]) {
it('Should pause unpause proposal', async function() {
this.timeout(100000);
await gd.toggleProposalPause(true, 0);
await gd.toggleProposalPause(true, 0);
let p1 = await gd.proposalPaused(0);
await gd.toggleProposalPause(false, 0);
let p2 = await gd.proposalPaused(0);
Expand Down

0 comments on commit 7d54584

Please sign in to comment.