Skip to content

Commit eea9ecf

Browse files
committed
isolate tests
1 parent 744bf48 commit eea9ecf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/runners/async.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ function async_runner (files, callback) {
3232
if (files.length === 0) {
3333
return callback({ "error": "Expected at least one test to run" });
3434
}
35+
db.query("BEGIN");
3536

3637
count = files.length;
3738

3839
for (var i = 0; i < count; i++) {
3940
_execute_query(files[i], callback);
4041
}
42+
43+
db.query("ROLLBACK");
4144
}
4245

4346
exports.runner = async_runner;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "equinox",
33
"description": "Testing for Postgres",
4-
"version": "1.0.5",
4+
"version": "1.0.6",
55
"author": "Jerry Sievert <[email protected]>",
66
"dependencies": {
77
"ansi-color": "^0.2.1",

0 commit comments

Comments
 (0)