diff --git a/test/fabric/service/caService.test.ts b/test/fabric/service/caService.test.ts index bb2ccd0..c83687d 100644 --- a/test/fabric/service/caService.test.ts +++ b/test/fabric/service/caService.test.ts @@ -6,8 +6,9 @@ import Ca from '../../../src/fabric/service/caService' import config from '../../../src/fabric/config' import { CaEnrollCommandTypeEnum, CaRegisterTypeEnum } from '../../../src/fabric/model/type/caService.type' import { sleep } from '../../../src/util' +import { spawn } from 'child_process' -describe('Fabric.CA', function () { +describe.only('Fabric.CA', function () { this.timeout(10000) let caService: Ca @@ -388,12 +389,11 @@ describe('Fabric.CA', function () { reject(new Error(`rca connect test error: ${err.message}`)) }) }) - - after(async () => { - await caService.down({ caName: rcaArgv.basic.caName }) - await caService.down({ caName: icaArgv.basic.caName }) - fs.rmSync(`${config.infraConfig.bdkPath}/${config.networkName}`, { recursive: true }) - }) + }) + after(async () => { + await caService.down({ caName: rcaArgv.basic.caName }) + await caService.down({ caName: icaArgv.basic.caName }) + fs.rmSync(`${config.infraConfig.bdkPath}/${config.networkName}`, { recursive: true }) }) it('reenroll orderer ca', async () => { diff --git a/test/fabric/service/chaincode.test.ts b/test/fabric/service/chaincode.test.ts index 57413de..77f9b45 100644 --- a/test/fabric/service/chaincode.test.ts +++ b/test/fabric/service/chaincode.test.ts @@ -7,7 +7,7 @@ import MinimumNetwork from '../util/minimumNetwork' import sinon from 'sinon' import { DockerResultType } from '../../../src/fabric/instance/infra/InfraRunner.interface' -describe('Chaincode service:', function () { +describe.only('Chaincode service:', function () { this.timeout(90000) let minimumNetwork: MinimumNetwork