Change cvar usages to use CVarDef and define them in CCVars (#2250)
* Change cvar usages to use CVarDef and define them in CCVars * Merge fixes * Remove duplicate cvar registration
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.GameTicking;
|
||||
using Content.Server.Interfaces.GameTicking;
|
||||
using Content.Shared;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.Interfaces.Configuration;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
@@ -31,7 +32,7 @@ namespace Content.IntegrationTests.Tests.Commands
|
||||
|
||||
server.Assert(() =>
|
||||
{
|
||||
configManager.SetCVar("game.lobbyenabled", lobbyEnabled);
|
||||
configManager.SetCVar(CCVars.GameLobbyEnabled, lobbyEnabled);
|
||||
|
||||
Assert.That(gameTicker.RunLevel, Is.EqualTo(GameRunLevel.InRound));
|
||||
|
||||
|
||||
@@ -38,9 +38,7 @@ namespace Content.IntegrationTests.Tests.Lobby
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
{
|
||||
var lobbyCvar = CCVars.GameLobbyEnabled;
|
||||
serverConfig.SetCVar(lobbyCvar.Name, true);
|
||||
|
||||
serverConfig.SetCVar(CCVars.GameLobbyEnabled, true);
|
||||
serverTicker.RestartRound();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user