Skip to content

Commit

Permalink
fix: cli and integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kittybest committed Jan 11, 2024
2 parents fe51956 + 49118d3 commit 7369d23
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
6 changes: 2 additions & 4 deletions cli/tests/e2e/e2e.subsidy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ describe("e2e with Subsidy tests", function test() {
let pollAddresses: PollContracts;
let vkRegistryContractAddress: string;

const deploySubsidy = true;

before(async () => {
// we deploy the vk registry contract
vkRegistryContractAddress = await deployVkRegistryContract(true);
Expand All @@ -75,7 +77,6 @@ describe("e2e with Subsidy tests", function test() {
});

const users = [new Keypair(), new Keypair(), new Keypair(), new Keypair()];
const deploySubsidy = true;

before(async () => {
// deploy the smart contracts
Expand Down Expand Up @@ -225,7 +226,6 @@ describe("e2e with Subsidy tests", function test() {
new Keypair(),
new Keypair(),
];
const deploySubsidy = true;

before(async () => {
// deploy the smart contracts
Expand Down Expand Up @@ -310,7 +310,6 @@ describe("e2e with Subsidy tests", function test() {
});

const user = new Keypair();
const deploySubsidy = true;

before(async () => {
// deploy the smart contracts
Expand Down Expand Up @@ -401,7 +400,6 @@ describe("e2e with Subsidy tests", function test() {
new Keypair(),
new Keypair(),
];
const deploySubsidy = true;

let secondPollAddresses: PollContracts;

Expand Down
4 changes: 1 addition & 3 deletions cli/tests/e2e/keyChange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe("keyChange tests", function test() {
this.timeout(900000);

let maciAddresses: DeployedContracts;
const deploySubsidy = false;

// before all tests we deploy the vk registry contract and set the verifying keys
before(async () => {
Expand Down Expand Up @@ -75,7 +76,6 @@ describe("keyChange tests", function test() {
let stateIndex = 0;
const expectedTally = initialVoteAmount - 1;
const expectedPerVoteOptionTally = (initialVoteAmount - 1) ** 2;
const deploySubsidy = false;

before(async () => {
// deploy the smart contracts
Expand Down Expand Up @@ -169,7 +169,6 @@ describe("keyChange tests", function test() {
let stateIndex = 0;
const expectedTally = initialVoteAmount;
const expectedPerVoteOptionTally = initialVoteAmount ** 2;
const deploySubsidy = false;

before(async () => {
// deploy the smart contracts
Expand Down Expand Up @@ -263,7 +262,6 @@ describe("keyChange tests", function test() {
let stateIndex = 0;
const expectedTally = initialVoteAmount - 3;
const expectedPerVoteOptionTally = (initialVoteAmount - 3) ** 2;
const deploySubsidy = false;

before(async () => {
// deploy the smart contracts
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"is-ci": "^3.0.1",
"lerna": "^6.6.2",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.0.0",
"typedoc": "^0.25.4",
Expand Down

0 comments on commit 7369d23

Please sign in to comment.