Skip to content

Commit

Permalink
get hierarchy worker tests - run only the getHierarchy job
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraff2 committed May 22, 2017
1 parent ab1a7b2 commit fc6ea5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/cache/jobQueue/getHierarchy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'use strict';
const jobQueue = require('../../../jobQueue/setup').jobQueue;
const jobType = require('../../../jobQueue/setup').jobType;
const getHierarchyJob = require('../../../worker/jobs/getHierarchyJob');
const expect = require('chai').expect;
const supertest = require('supertest');
const api = supertest(require('../../../index').app);
Expand All @@ -28,7 +29,7 @@ describe(`api: GET using worker process ${path}`, () => {
before(() => {
tu.toggleOverride('enableWorkerProcess', true);
tu.toggleOverride('enqueueHierarchy', true);
require('../../../worker/jobProcessor');
jobQueue.process(jobType.GET_HIERARCHY, getHierarchyJob);
});

before(() => {
Expand Down
3 changes: 2 additions & 1 deletion tests/jobQueue/v1/getHierarchy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'use strict';
const jobQueue = require('../../../jobQueue/setup').jobQueue;
const jobType = require('../../../jobQueue/setup').jobType;
const getHierarchyJob = require('../../../worker/jobs/getHierarchyJob');
const expect = require('chai').expect;
const supertest = require('supertest');
const api = supertest(require('../../../index').app);
Expand All @@ -27,7 +28,7 @@ describe(`api: GET using worker process ${path}`, () => {
before(() => {
tu.toggleOverride('enableWorkerProcess', true);
tu.toggleOverride('enqueueHierarchy', true);
require('../../../worker/jobProcessor');
jobQueue.process(jobType.GET_HIERARCHY, getHierarchyJob);
});

before(() => {
Expand Down

0 comments on commit fc6ea5f

Please sign in to comment.