Track player stats on instances

Track which players are online and record basic stats for each player on
each instance including when save patching is disabled.
This commit is contained in:
Hornwitser committed 2022-06-29 21:35:56 +02:00
1 parent 72357dfd23
commit a063cf2db5
5 files changed
+336 -30

No files matched your search

-25
View File
@@ -13,31 +13,6 @@ describe("Slave testing", function() {
libConfig.InstanceConfig.finalize();
});
describe("class Instance", function() {
let instance;
before(async function() {
let instanceConfig = new libConfig.InstanceConfig("slave");
await instanceConfig.init();
instanceConfig.set("instance.name", "foo");
instance = new Instance({}, new libLink.VirtualConnector(), "dir", "factorioDir", instanceConfig);
});
describe(".name", function() {
it("should give the name of the instance", function() {
assert.equal(instance.name, "foo");
});
});
describe(".path()", function() {
it("should give the path when called without arguments", function() {
assert.equal(instance.path(), "dir");
});
it("should join path with arguments", function() {
assert.equal(instance.path("bar"), path.join("dir", "bar"));
});
});
});
describe("checkFilename()", function() {
it("should allow a basic name", function() {
Slave._checkFilename("file");