aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/blockchain_lifecycle.ts (renamed from test/utils/blockchain_clean.ts)6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/utils/blockchain_clean.ts b/test/utils/blockchain_lifecycle.ts
index 18b7e3a5b..f7342b680 100644
--- a/test/utils/blockchain_clean.ts
+++ b/test/utils/blockchain_lifecycle.ts
@@ -1,16 +1,16 @@
import {RPC} from './rpc';
-export class BlockchainClean {
+export class BlockchainLifecycle {
private rpc: RPC;
private snapshotId: number;
constructor() {
this.rpc = new RPC();
}
// TODO: Check if running on TestRPC or on actual node, if actual node, re-deploy contracts instead
- public async setupAsync(): Promise<void> {
+ public async startAsync(): Promise<void> {
this.snapshotId = await this.rpc.takeSnapshotAsync();
}
- public async restoreAsync(): Promise<void> {
+ public async revertAsync(): Promise<void> {
const didRevert = await this.rpc.revertSnapshotAsync(this.snapshotId);
if (!didRevert) {
throw new Error(`Snapshot with id #${this.snapshotId} failed to revert`);