mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-19 23:33:13 +09:00
Merge pull request #1231 from bbassie/fix/link-test-system-info
Answer system info requests in the link integration test
This commit is contained in:
1 parent
b8e96989af
commit
eefb4be44b
1 file changed
+3
@@ -33,6 +33,9 @@ describe("Integration of lib/link", function() {
|
|||||||
hostConnector = new TestHostConnector(url, 0.2);
|
hostConnector = new TestHostConnector(url, 0.2);
|
||||||
hostConnector.token = linkHost.token;
|
hostConnector.token = linkHost.token;
|
||||||
hostConnector.hostId = linkHost.hostId;
|
hostConnector.hostId = linkHost.hostId;
|
||||||
|
// The controller requests system info on connect and waits for it before disconnecting
|
||||||
|
const hostLink = new lib.Link(hostConnector);
|
||||||
|
hostLink.handle(lib.SystemInfoRequest, () => lib.gatherSystemInfo(linkHost.hostId, false, false, 0));
|
||||||
});
|
});
|
||||||
afterEach(async function() {
|
afterEach(async function() {
|
||||||
await controlConnector.disconnect();
|
await controlConnector.disconnect();
|
||||||
|
|||||||
Reference in new issue
Block a user