Skip to content

Commit

Permalink
avoids calling revert or re-deploying between test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Rudolf committed Sep 28, 2017
1 parent a3be7a0 commit 83404a7
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/testing/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 83404a7

Please sign in to comment.