fixes tests
This commit is contained in:
@@ -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)]
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user