Merge pull request #1142 from bluewave-labs/fix/be/update-tests

Update tests for JobQueue and StatusService after chanages to hardwar…
This commit is contained in:
Alexander Holliday
2024-11-13 23:04:29 -08:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -30,6 +30,14 @@ class QueueStub {
async getJobs() {
return this.jobs;
}
async pause() {
return true;
}
async obliterate() {
return true;
}
}
class WorkerStub {
+1 -1
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;