From 83404a758a684e8d3d4806f24bc40a25c0817b79 Mon Sep 17 00:00:00 2001 From: Marcin Rudolf Date: Thu, 28 Sep 2017 12:27:06 +0200 Subject: [PATCH] avoids calling revert or re-deploying between test files --- lib/testing/testrunner.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/testing/testrunner.js b/lib/testing/testrunner.js index 76e08bf..c71d55f 100644 --- a/lib/testing/testrunner.js +++ b/lib/testing/testrunner.js @@ -103,19 +103,7 @@ TestRunner.prototype.deploy = function(callback) { }; TestRunner.prototype.resetState = function(callback) { - var self = this; - if (this.can_snapshot) { - this.revert(this.initial_snapshot, function(err) { - if (err) return callback(err); - self.snapshot(function(err, snapshot) { - if (err) return callback(err); - self.initial_snapshot = snapshot; - callback(); - }); - }); - } else { - this.deploy(callback); - } + callback(); }; TestRunner.prototype.startTest = function(mocha, callback) {