Upgrades people!
This commit is contained in:
parent
f84234150f
commit
8ad56e8d38
40 changed files with 483 additions and 379 deletions
|
@ -24,21 +24,18 @@ export default class TestResultsWorker extends Worker {
|
|||
}
|
||||
*/
|
||||
onMessage(testResult) {
|
||||
const { pipelineData, pipelineTriggers, pipelineDelay } = testResult;
|
||||
const pipelineTrigger = { pipelineData, pipelineTriggers, pipelineDelay };
|
||||
const { pipeline } = testResult;
|
||||
|
||||
// Alter to start next test
|
||||
// TODO the delay should be autopopulated either by the suite, or filled in by the server
|
||||
if (pipelineTriggers)
|
||||
return this.pipelineTrigger(
|
||||
pipelineTrigger,
|
||||
testResult.pipelineDashboardSocket
|
||||
);
|
||||
this.pipelineClose(testResult.pipelineDashboardSocket);
|
||||
if (pipeline) return this.pipelineTrigger(pipeline);
|
||||
const { dashboardSocketId: dsi } = pipeline;
|
||||
this.pipelineClose(dsi);
|
||||
}
|
||||
|
||||
pipelineTrigger(pipelineTrigger, socketId) {
|
||||
pipelineTrigger.pipelineDelay = 1000 * 5;
|
||||
this.skio.to(socketId).emit(evt.PPL_TRG, pipelineTrigger);
|
||||
pipelineTrigger(pipeline) {
|
||||
const { dashboardSocketId: dsi } = pipeline;
|
||||
this.skio.to(dsi).emit(evt.PPL_TRG, pipeline);
|
||||
}
|
||||
|
||||
pipelineClose(socketId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue