fix(config): resolve remote hierarchy in memory for every profile
This commit is contained in:
@@ -23,10 +23,11 @@ test('resolveGameServer:空 gameconfig 使用配置源,非空值使用解码
|
||||
);
|
||||
});
|
||||
|
||||
test('默认 profile 是 ACTIVE_PROFILE,local 是显式 direct 源', () => {
|
||||
test('默认 profile 是 ACTIVE_PROFILE,local 保持 remote 源与独立连接目标', () => {
|
||||
assert.equal(resolveActiveProfile('').name, ACTIVE_PROFILE);
|
||||
const local = resolveActiveProfile('?profile=local');
|
||||
assert.equal(local.source, 'direct');
|
||||
assert.equal(local.source, 'remote');
|
||||
assert.ok(local.gameserver);
|
||||
assert.deepEqual(local.servers, ['ws://127.0.0.1:3088']);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user