wait for db flush to complete to carry on with other test suites

fixes the problem where tests would sometimes fail due to timing issues
This commit is contained in:
barisusakli
2016-08-12 13:49:41 +03:00
parent 4ca53703e3
commit a13bc64f40
10 changed files with 20 additions and 20 deletions

View File

@@ -89,7 +89,7 @@ describe('Categories', function() {
});
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -369,7 +369,7 @@ describe('Hash methods', function() {
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -142,7 +142,7 @@ describe('Key methods', function() {
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -158,7 +158,7 @@ describe('List methods', function() {
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -229,7 +229,7 @@ describe('Set methods', function() {
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -533,7 +533,7 @@ describe('Sorted Set methods', function() {
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -342,7 +342,7 @@ describe('Groups', function() {
});
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -66,7 +66,7 @@ describe('Messaging Library', function() {
});
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -387,7 +387,7 @@ describe('Topic\'s', function() {
});
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});

View File

@@ -282,7 +282,7 @@ describe('User', function() {
});
});
after(function() {
db.flushdb();
after(function(done) {
db.flushdb(done);
});
});