Rename Slave to Host

The role of a slave as a host for Factorio servers is not well reflected
in its name and has caused confusion among users.  Rename slave to host
to better reflect its role as a host of Factorio servers.
This commit is contained in:
Hornwitser committed 2023-02-22 15:30:51 +01:00
1 parent 70ad295a89
commit 6fc3abafd5
101 files changed
+1168 -1168

No files matched your search

+4 -4
View File
@@ -111,13 +111,13 @@ describe("lib/logging_utils.js", function() {
it("should filter by controller", async function() {
let log = await libLoggingUtils.queryLog(logDir, { controller: true }, index());
assert.deepEqual(log, allLines.filter(
info => info.slave_id === undefined && info.instance_id === undefined
info => info.host_id === undefined && info.instance_id === undefined
));
});
it("should filter by slave_ids", async function() {
let log = await libLoggingUtils.queryLog(logDir, { slave_ids: [1, 2] }, index());
it("should filter by host_ids", async function() {
let log = await libLoggingUtils.queryLog(logDir, { host_ids: [1, 2] }, index());
assert.deepEqual(log, allLines.filter(
info => [1, 2].includes(info.slave_id) && info.instance_id === undefined
info => [1, 2].includes(info.host_id) && info.instance_id === undefined
));
});
it("should filter by instance_ids", async function() {