diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-10 13:16:06 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:30 +0800 |
commit | 22f78a2c52d0aa573940cec59b02d1976c172af5 (patch) | |
tree | e8b2454f08f239c72542d9347d6f46d728c63a3f /packages/sol-cov/src | |
parent | bd7517cfd489a9789f81c247fb45329881274d15 (diff) | |
download | dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar.gz dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar.bz2 dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar.lz dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar.xz dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.tar.zst dexon-sol-tools-22f78a2c52d0aa573940cec59b02d1976c172af5.zip |
Don't await lock releases
Diffstat (limited to 'packages/sol-cov/src')
-rw-r--r-- | packages/sol-cov/src/coverage_subprovider.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/coverage_subprovider.ts b/packages/sol-cov/src/coverage_subprovider.ts index c84211d3a..e391b0f5c 100644 --- a/packages/sol-cov/src/coverage_subprovider.ts +++ b/packages/sol-cov/src/coverage_subprovider.ts @@ -91,7 +91,7 @@ export class CoverageSubprovider extends Subprovider { if (!txData.isFakeTransaction) { // This transaction is a usual ttransaction. Not a call executed as one. // And we don't want it to be executed within a snapshotting period - await this._lock.release(); + this._lock.release(); } cb(); } @@ -152,7 +152,7 @@ export class CoverageSubprovider extends Subprovider { // Even if this transaction failed - we've already recorded it's trace. } const jsonRPCResponse = await this.emitPayloadAsync({ method: 'evm_revert', params: [snapshotId] }); - await this._lock.release(); + this._lock.release(); const didRevert = jsonRPCResponse.result; if (!didRevert) { throw new Error('Failed to revert the snapshot'); |