This commit is contained in:
Daniel García Aubert 2016-10-27 18:24:39 +02:00
parent 5b8108d4a8
commit 8f65e6b16c

View File

@ -33,9 +33,9 @@ function createWadusJob() {
describe('job backend', function() {
var jobBackend = new JobBackend(metadataBackend, jobQueue);
after(function (done) {
redisUtils.clean('batch:*', done);
});
// after(function (done) {
// redisUtils.clean('batch:*', done);
// });
it('.create() should persist a job', function (done) {
var job = createWadusJob();
@ -97,4 +97,16 @@ describe('job backend', function() {
done();
});
});
it('.addWorkInProgressJob() should add current job to user and host lists', function (done) {
var job = createWadusJob();
jobBackend.addWorkInProgressJob(job.data.user, job.data.job_id, function (err) {
if (err) {
return done(err);
}
done();
});
});
});