fix: use loadDelay generator setting in subscriptions as well (#6918)
* refactor: use `getBounds()` instead of `bounds()` * fix: use `loadDelay` in generator subscription * refactor: fix up e2e test * fix: remove `.only()` * refactor: lint * Start to fix up conditionSet test with comments * test: edit conditionSet to add delay value * test: tests the case where telemetry is available * fix: remove `.only()` * test: add comments, clarify assertion * refactor: lint:fix * test: fix conditionSet default condition name test * test: add assertions to stabilize tags tests --------- Co-authored-by: Scott Bell <scott@traclabs.com> Co-authored-by: John Hill <john.c.hill@nasa.gov>
This commit is contained in:
@@ -88,10 +88,10 @@ define(['uuid'], function ({ v4: uuid }) {
|
||||
};
|
||||
|
||||
WorkerInterface.prototype.subscribe = function (request, cb) {
|
||||
const id = request.id;
|
||||
const { id, loadDelay } = request;
|
||||
const messageId = this.dispatch('subscribe', request, (message) => {
|
||||
if (!this.staleTelemetryIds[id]) {
|
||||
cb(message.data);
|
||||
setTimeout(() => cb(message.data), Math.max(loadDelay, 0));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user