Skip to content

Commit

Permalink
deps(testing) - allow more timeout across all tests to ensure they ha…
Browse files Browse the repository at this point in the history
…ve enough time to run in the CI
  • Loading branch information
ctrlc03 committed Nov 9, 2023
1 parent 259c14b commit 1329572
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion crypto/ts/__tests__/AccQueue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
} from '../'
import { testMerge, testMergeExhaustive, testMergeShortest, testMergeShortestOne } from './utils'

describe('AccQueue', () => {
describe('AccQueue', function () {
this.timeout(100000)
describe('Enqueue', () => {
describe('Binary AccQueue', () => {
const HASH_LENGTH = 2
Expand Down
3 changes: 2 additions & 1 deletion crypto/ts/__tests__/Crypto.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
} from '../'


describe('Cryptographic operations', () => {
describe('Cryptographic operations', function() {
this.timeout(100000)
const { privKey, pubKey } = genKeypair()
const k = genKeypair()

Expand Down
4 changes: 3 additions & 1 deletion domainobjs/ts/__tests__/DomainObjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import {
genRandomSalt,
} from 'maci-crypto'

describe('Domain objects', () => {
describe('Domain objects', function() {
this.timeout(100000)

const { privKey, pubKey } = new Keypair()
const k = new Keypair()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function getPollDuration(providerUrl: string, maci: string, pollId: number
}

describe('Test deployPollWithSigner', function() {
this.timeout(3000000)
this.timeout(5000000)
const data = loadData('suites.json')
const test = data.suites[0]
it(test.description, async () => {
Expand Down
2 changes: 1 addition & 1 deletion integrationTests/ts/__tests__/suites.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from './suites'

describe('Test suites', function() {
this.timeout(3000000)
this.timeout(5000000)
const data = loadData('suites.json')
for (const test of data.suites) {
it(test.description, async () => {
Expand Down

0 comments on commit 1329572

Please sign in to comment.