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
v1.18.x
barisusakli 9 years ago
parent 4ca53703e3
commit a13bc64f40

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

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

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

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

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

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

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

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

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

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