Make some test less demanding

This commit is contained in:
Daniel García Aubert 2016-11-24 16:53:15 +01:00
parent b2a6b319e4
commit 48469aaf0d
2 changed files with 5 additions and 5 deletions

View File

@ -124,7 +124,7 @@ describe('batch multiquery', function() {
]
];
var jobsQueue = queue(2);
var jobsQueue = queue(1);
jobs.forEach(function(job) {
jobsQueue.defer(function(payload, done) {
@ -165,7 +165,7 @@ describe('batch multiquery', function() {
];
var expectedStatus = [JobStatus.FAILED, JobStatus.DONE];
var jobsQueue = queue(2);
var jobsQueue = queue(1);
jobs.forEach(function(job) {
jobsQueue.defer(function(payload, done) {
@ -207,7 +207,7 @@ describe('batch multiquery', function() {
];
var expectedStatus = [JobStatus.DONE, JobStatus.FAILED];
var jobsQueue = queue(2);
var jobsQueue = queue(1);
jobs.forEach(function(job) {
jobsQueue.defer(function(payload, done) {

View File

@ -78,7 +78,7 @@ describe('batch happy cases', function() {
'select * from private_table',
];
var jobsQueue = queue(4);
var jobsQueue = queue(1);
jobs.forEach(function(job) {
jobsQueue.defer(function(payload, done) {
@ -113,7 +113,7 @@ describe('batch happy cases', function() {
'select * from unexistent_table'
];
var jobsQueue = queue(4);
var jobsQueue = queue(1);
jobs.forEach(function(job) {
jobsQueue.defer(function(payload, done) {