Skip to content

Commit

Permalink
Update tests for JobQUeue and StatusService after chanages to hardwar…
Browse files Browse the repository at this point in the history
…e module and JobQueue
  • Loading branch information
ajhollid committed Nov 11, 2024
1 parent b554074 commit 98fb77a
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 98fb77a

Please sign in to comment.