Update tests for JobQUeue and StatusService after chanages to hardware module and JobQueue

This commit is contained in:
Alex Holliday
2024-11-12 07:36:08 +08:00
parent b55407489b
commit 98fb77aa3d
2 changed files with 9 additions and 1 deletions

View File

@@ -30,6 +30,14 @@ class QueueStub {
async getJobs() {
return this.jobs;
}
async pause() {
return true;
}
async obliterate() {
return true;
}
}
class WorkerStub {

View File

@@ -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;