Skip to content

Commit

Permalink
Merge pull request #1142 from bluewave-labs/fix/be/update-tests
Browse files Browse the repository at this point in the history
Update tests for JobQueue and StatusService after chanages to hardwar…
  • Loading branch information
ajhollid authored Nov 14, 2024
2 parents 7ea4a25 + 98fb77a commit b1bfd2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Server/tests/services/jobQueue.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ class QueueStub {
async getJobs() {
return this.jobs;
}

async pause() {
return true;
}

async obliterate() {
return true;
}
}

class WorkerStub {
Expand Down
2 changes: 1 addition & 1 deletion Server/tests/services/statusService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe("StatusService", () => {
responseTime: 100,
code: 200,
message: "Test message",
payload: { cpu: "cpu", memory: "memory", disk: "disk", host: "host" },
payload: { data: { cpu: "cpu", memory: "memory", disk: "disk", host: "host" } },
});
expect(check.monitorId).to.equal("test");
expect(check.status).to.be.true;
Expand Down

0 comments on commit b1bfd2a

Please sign in to comment.