diff --git a/barretenberg/ts/src/barretenberg/common.test.ts b/barretenberg/ts/src/barretenberg/common.test.ts index 705bcedd8d3..96f74556668 100644 --- a/barretenberg/ts/src/barretenberg/common.test.ts +++ b/barretenberg/ts/src/barretenberg/common.test.ts @@ -5,10 +5,12 @@ describe('env', () => { beforeAll(async () => { api = await Barretenberg.new({ threads: 3 }); - }, 15000); + }, 30000); afterAll(async () => { - await api.destroy(); + if (api) { + await api.destroy(); + } }); it('thread test', async () => { diff --git a/barretenberg/ts/src/examples/simple.test.ts b/barretenberg/ts/src/examples/simple.test.ts index 4af243a631d..29405ebc84d 100644 --- a/barretenberg/ts/src/examples/simple.test.ts +++ b/barretenberg/ts/src/examples/simple.test.ts @@ -14,7 +14,7 @@ describe('simple', () => { const crs = await Crs.new(2 ** 19 + 1); await api.srsInitSrs(new RawBuffer(crs.getG1Data()), crs.numPoints, new RawBuffer(crs.getG2Data())); - }, 30000); + }, 60000); afterAll(async () => { await api.destroy();