Remove PoolSettings.ExtraPrototypes option (#18678)

This commit is contained in:
Leon Friedrich
2023-08-05 16:16:48 +12:00
committed by GitHub
parent c2beaff3ac
commit d58786faf4
51 changed files with 463 additions and 399 deletions

View File

@@ -18,9 +18,10 @@ namespace Content.IntegrationTests.Tests.Station;
[TestOf(typeof(StationJobsSystem))]
public sealed class StationJobsTest
{
[TestPrototypes]
private const string Prototypes = @"
- type: playTimeTracker
id: Dummy
id: PlayTimeDummy
- type: gameMap
id: FooStation
@@ -43,26 +44,26 @@ public sealed class StationJobsTest
- type: job
id: TAssistant
playTimeTracker: Dummy
playTimeTracker: PlayTimeDummy
- type: job
id: TMime
weight: 20
playTimeTracker: Dummy
playTimeTracker: PlayTimeDummy
- type: job
id: TClown
weight: -10
playTimeTracker: Dummy
playTimeTracker: PlayTimeDummy
- type: job
id: TCaptain
weight: 10
playTimeTracker: Dummy
playTimeTracker: PlayTimeDummy
- type: job
id: TChaplain
playTimeTracker: Dummy
playTimeTracker: PlayTimeDummy
";
private const int StationCount = 100;
@@ -75,8 +76,7 @@ public sealed class StationJobsTest
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings
{
NoClient = true,
ExtraPrototypes = Prototypes
NoClient = true
});
var server = pairTracker.Pair.Server;
@@ -153,8 +153,7 @@ public sealed class StationJobsTest
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings
{
NoClient = true,
ExtraPrototypes = Prototypes
NoClient = true
});
var server = pairTracker.Pair.Server;
@@ -208,8 +207,7 @@ public sealed class StationJobsTest
{
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings
{
NoClient = true,
ExtraPrototypes = Prototypes
NoClient = true
});
var server = pairTracker.Pair.Server;