Updated things for compound testing
This commit is contained in:
parent
4e6732c09b
commit
5c3f865604
16 changed files with 160 additions and 56 deletions
|
@ -1,13 +1,12 @@
|
|||
import { Router, json as jsonMiddleware } from "express";
|
||||
import TestResultsWorker from "../rabbit/workers/TestResultsWorker.js";
|
||||
|
||||
const testResultsHandler = new TestResultsWorker();
|
||||
|
||||
const router = Router();
|
||||
router.use(jsonMiddleware());
|
||||
router.post("/rabbit/TestResults", (req, res) => {
|
||||
const { testResult } = req.body;
|
||||
testResultsHandler.onMessage(testResult);
|
||||
var io = req.app.get("socketio");
|
||||
new TestResultsWorker(io).onMessage(testResult);
|
||||
res.sendStatus(200);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue