fixes tests

This commit is contained in:
Paul
2021-11-20 16:12:58 +01:00
parent 5a477389d3
commit 186edba6fd
3 changed files with 20 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ using Content.Client.Clickable;
using Content.Server.GameTicking; using Content.Server.GameTicking;
using NUnit.Framework; using NUnit.Framework;
using Robust.Server.GameObjects; using Robust.Server.GameObjects;
using Robust.Shared;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.IoC; using Robust.Shared.IoC;
using Robust.Shared.Map; using Robust.Shared.Map;
@@ -27,7 +28,13 @@ namespace Content.IntegrationTests.Tests
[OneTimeSetUp] [OneTimeSetUp]
public async Task Setup() public async Task Setup()
{ {
(_client, _server) = await StartConnectedServerClientPair(); (_client, _server) = await StartConnectedServerClientPair(serverOptions: new ServerContentIntegrationOption()
{
CVarOverrides =
{
[CVars.NetPVS.Name] = "false"
}
});
} }
[Parallelizable(ParallelScope.None)] [Parallelizable(ParallelScope.None)]

View File

@@ -13,6 +13,7 @@ using Content.Shared.Cooldown;
using NUnit.Framework; using NUnit.Framework;
using Robust.Client.UserInterface; using Robust.Client.UserInterface;
using Robust.Server.Player; using Robust.Server.Player;
using Robust.Shared;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.Map; using Robust.Shared.Map;
using Robust.Shared.Timing; using Robust.Shared.Timing;
@@ -218,7 +219,14 @@ namespace Content.IntegrationTests.Tests.GameObjects.Components.Mobs
[Test] [Test]
public async Task GrantsAndRevokesItemActions() public async Task GrantsAndRevokesItemActions()
{ {
var serverOptions = new ServerIntegrationOptions { ExtraPrototypes = Prototypes }; var serverOptions = new ServerIntegrationOptions
{
ExtraPrototypes = Prototypes,
CVarOverrides =
{
{CVars.NetPVS.Name, "false"}
}
};
var clientOptions = new ClientIntegrationOptions { ExtraPrototypes = Prototypes }; var clientOptions = new ClientIntegrationOptions { ExtraPrototypes = Prototypes };
var (client, server) = await StartConnectedServerClientPair(serverOptions: serverOptions, clientOptions: clientOptions); var (client, server) = await StartConnectedServerClientPair(serverOptions: serverOptions, clientOptions: clientOptions);

View File

@@ -7,6 +7,7 @@ using Content.Shared.CCVar;
using Content.Shared.Preferences; using Content.Shared.Preferences;
using NUnit.Framework; using NUnit.Framework;
using Robust.Client.State; using Robust.Client.State;
using Robust.Shared;
using Robust.Shared.Configuration; using Robust.Shared.Configuration;
using Robust.Shared.GameObjects; using Robust.Shared.GameObjects;
using Robust.Shared.Network; using Robust.Shared.Network;
@@ -26,7 +27,8 @@ namespace Content.IntegrationTests.Tests.Lobby
CVarOverrides = CVarOverrides =
{ {
[CCVars.GameDummyTicker.Name] = "false", [CCVars.GameDummyTicker.Name] = "false",
[CCVars.GameLobbyEnabled.Name] = "true" [CCVars.GameLobbyEnabled.Name] = "true",
[CVars.NetPVS.Name] = "false"
} }
}; };