Changes content integration tests to load content resources. (#4248)
* Changes content integration tests to load content resources. * Content Integration tests override the GameControllerOptions and ServerOptions. Only engine integration tests can change these! * don't do component auto-registration by default in content integration tests * Only use empty map in integration tests if CVar not overriden already. * don't use nullable annotations in content integration tests... * Fix integration tests * Fix spawn test * Move cvar overrides out of content * Update submodule.
This commit is contained in:
committed by
GitHub
parent
d10885742b
commit
d5e34c6ad4
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Battery.Components;
|
||||
using Content.Server.PowerCell.Components;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Coordinates;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -21,7 +22,12 @@ namespace Content.IntegrationTests.Tests
|
||||
[Test]
|
||||
public async Task SpawnTest()
|
||||
{
|
||||
var server = StartServerDummyTicker();
|
||||
var options = new ServerContentIntegrationOption()
|
||||
{
|
||||
CVarOverrides = {{CCVars.AIMaxUpdates.Name, int.MaxValue.ToString()}}
|
||||
};
|
||||
|
||||
var server = StartServerDummyTicker(options);
|
||||
await server.WaitIdleAsync();
|
||||
|
||||
var mapManager = server.ResolveDependency<IMapManager>();
|
||||
|
||||
Reference in New Issue
Block a user