From 2a57ddb02e938d63a89c388428956a11f1b12663 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 24 Jan 2024 03:08:24 +0100 Subject: [PATCH] Add note about send and bcast test functions --- test/integration/routing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/routing.js b/test/integration/routing.js index ed31de35..6881f079 100644 --- a/test/integration/routing.js +++ b/test/integration/routing.js @@ -164,6 +164,9 @@ describe("Integration of link routing", function() { * @param {Address} dst */ function send(link, dst, message) { + // This logic exists becasue .sendTo doesn't forward all kinds of + // messages to the correct location from all places. Idealy this + // would not be neccessary and .sendTo would do the right thing. if (link instanceof Host) { const instance = link.instanceConnections.get(dst.id); if (instance) { @@ -208,6 +211,9 @@ describe("Integration of link routing", function() { * @param {"allHosts" | "allInstances" | "allControls"} dst */ function bcast(link, dst, message) { + // This logic exists becasue .sendTo doesn't forward all kinds of + // messages to the correct location from all places. Idealy this + // would not be neccessary and .sendTo would do the right thing. if (link instanceof Host) { const plugin = message.constructor.plugin; if (dst === "allInstances") {