Remove obsolete TestPair.Pair (#19496)

This commit is contained in:
Visne
2023-08-25 02:56:51 +02:00
committed by GitHub
parent e1639b05b5
commit 3c667b6f7e
101 changed files with 717 additions and 727 deletions

View File

@@ -32,8 +32,8 @@ public sealed class PrototypeSaveTest
[Test]
public async Task UninitializedSaveTest()
{
await using var pairTracker = await PoolManager.GetServerClient();
var server = pairTracker.Pair.Server;
await using var pair = await PoolManager.GetServerClient();
var server = pair.Server;
var mapManager = server.ResolveDependency<IMapManager>();
var entityMan = server.ResolveDependency<IEntityManager>();
@@ -72,7 +72,7 @@ public sealed class PrototypeSaveTest
if (prototype.Abstract)
continue;
if (pairTracker.Pair.IsTestPrototype(prototype))
if (pair.IsTestPrototype(prototype))
continue;
// Yea this test just doesn't work with this, it parents a grid to another grid and causes game logic to explode.
@@ -172,7 +172,7 @@ public sealed class PrototypeSaveTest
}
});
});
await pairTracker.CleanReturnAsync();
await pair.CleanReturnAsync();
}
public sealed class TestEntityUidContext : ISerializationContext,