Remove PoolSettings.ExtraPrototypes option (#18678)
This commit is contained in:
@@ -7,9 +7,10 @@ namespace Content.IntegrationTests.Tests.Atmos
|
||||
[TestOf(typeof(AtmosAlarmThreshold))]
|
||||
public sealed class AlarmThresholdTest
|
||||
{
|
||||
[TestPrototypes]
|
||||
private const string Prototypes = @"
|
||||
- type: alarmThreshold
|
||||
id: testThreshold
|
||||
id: AlarmThresholdTestDummy
|
||||
upperBound: !type:AlarmThresholdSetting
|
||||
threshold: 5
|
||||
lowerBound: !type:AlarmThresholdSetting
|
||||
@@ -23,7 +24,7 @@ namespace Content.IntegrationTests.Tests.Atmos
|
||||
[Test]
|
||||
public async Task TestAlarmThreshold()
|
||||
{
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings { NoClient = true, ExtraPrototypes = Prototypes });
|
||||
await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings { NoClient = true });
|
||||
var server = pairTracker.Pair.Server;
|
||||
|
||||
var prototypeManager = server.ResolveDependency<IPrototypeManager>();
|
||||
@@ -31,7 +32,7 @@ namespace Content.IntegrationTests.Tests.Atmos
|
||||
|
||||
await server.WaitPost(() =>
|
||||
{
|
||||
threshold = prototypeManager.Index<AtmosAlarmThreshold>("testThreshold");
|
||||
threshold = prototypeManager.Index<AtmosAlarmThreshold>("AlarmThresholdTestDummy");
|
||||
});
|
||||
|
||||
await server.WaitAssertion(() =>
|
||||
|
||||
Reference in New Issue
Block a user