Fix test: add auth params to job

This commit is contained in:
Eneko Lakasta 2018-05-30 11:48:15 +02:00
parent fa5a99211c
commit 6e3eb8ef28

View File

@ -37,7 +37,11 @@ describe('batch module', function() {
var data = { var data = {
user: username, user: username,
query: sql, query: sql,
host: dbInstance host: dbInstance,
dbname: 'cartodb_test_user_1_db',
dbuser: 'test_cartodb_user_1',
port: 5432,
pass: 'test_cartodb_user_1_pass',
}; };
jobService.create(data, function (err, job) { jobService.create(data, function (err, job) {
@ -60,7 +64,6 @@ describe('batch module', function() {
if (err) { if (err) {
done(err); done(err);
} }
assert.equal(job.status, 'running'); assert.equal(job.status, 'running');
self.batch.drain(function () { self.batch.drain(function () {