diff --git a/circuits/ts/__tests__/ProcessMessages.test.ts b/circuits/ts/__tests__/ProcessMessages.test.ts index a4e229d6e0..82e13498f7 100644 --- a/circuits/ts/__tests__/ProcessMessages.test.ts +++ b/circuits/ts/__tests__/ProcessMessages.test.ts @@ -48,7 +48,7 @@ const messageBatchSize = 5 const coordinatorKeypair = new Keypair() describe('ProcessMessage circuit', function() { - this.timeout(90000) + this.timeout(900000) let circuit: any let hasherCircuit: any diff --git a/integrationTests/ts/__tests__/cli-genMaciKeypair.test.ts b/integrationTests/ts/__tests__/cli-genMaciKeypair.test.ts index e496ff23ba..390c956242 100644 --- a/integrationTests/ts/__tests__/cli-genMaciKeypair.test.ts +++ b/integrationTests/ts/__tests__/cli-genMaciKeypair.test.ts @@ -11,7 +11,8 @@ import { } from "chai" import { exec } from './utils' -describe('genMaciKeypair CLI subcommand', () => { +describe('genMaciKeypair CLI subcommand', function() { + this.timeout(100000) const command = 'node ../cli/build/index.js genMaciKeypair' it('genMaciKeypair should output a random private key and public key', async () => { diff --git a/integrationTests/ts/__tests__/cli-genMaciPubkey.test.ts b/integrationTests/ts/__tests__/cli-genMaciPubkey.test.ts index 7ce0065c3e..538c374007 100644 --- a/integrationTests/ts/__tests__/cli-genMaciPubkey.test.ts +++ b/integrationTests/ts/__tests__/cli-genMaciPubkey.test.ts @@ -11,7 +11,8 @@ import { } from "chai" import { exec } from './utils' -describe('genMaciPubkey CLI subcommand', () => { +describe('genMaciPubkey CLI subcommand', function() { + this.timeout(100000) const command = 'node ../cli/build/index.js genMaciKeypair' it('genMaciPubkey should output a correct public key', async () => { diff --git a/integrationTests/ts/__tests__/deployPollWithRandomSigner.test.ts b/integrationTests/ts/__tests__/deployPollWithRandomSigner.test.ts index b87842f856..6e6af75239 100644 --- a/integrationTests/ts/__tests__/deployPollWithRandomSigner.test.ts +++ b/integrationTests/ts/__tests__/deployPollWithRandomSigner.test.ts @@ -2,7 +2,7 @@ import { loadData, execute, executeSuite, -} from './suites' +} from './suitesUtils' import { expect } from "chai" diff --git a/integrationTests/ts/__tests__/suites.test.ts b/integrationTests/ts/__tests__/suites.test.ts index 169d9fcf9f..f808998fa0 100644 --- a/integrationTests/ts/__tests__/suites.test.ts +++ b/integrationTests/ts/__tests__/suites.test.ts @@ -4,10 +4,10 @@ import { import { loadData, executeSuite, -} from './suites' +} from './suitesUtils' describe('Test suites', function() { - this.timeout(5000000) + this.timeout(500000000) const data = loadData('suites.json') for (const test of data.suites) { it(test.description, async () => { diff --git a/integrationTests/ts/__tests__/suites.ts b/integrationTests/ts/__tests__/suitesUtils.ts similarity index 99% rename from integrationTests/ts/__tests__/suites.ts rename to integrationTests/ts/__tests__/suitesUtils.ts index 8d1149260d..ca5bcde8ff 100644 --- a/integrationTests/ts/__tests__/suites.ts +++ b/integrationTests/ts/__tests__/suitesUtils.ts @@ -33,7 +33,7 @@ const execute = (command: any) => { } const loadData = (name: string) => { - return require('@maci-integrationTests/ts/__tests__/' + name) + return JSON.parse(fs.readFileSync(path.join(__dirname, name)).toString()) } const executeSuite = async (data: any, expect: any) => {