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

@@ -15,7 +15,7 @@ namespace Content.IntegrationTests.Tests.Toolshed;
[FixtureLifeCycle(LifeCycle.InstancePerTestCase)]
public abstract class ToolshedTest : IInvocationContext
{
protected TestPair PairTracker = default!;
protected TestPair Pair = default!;
protected virtual bool Connected => false;
protected virtual bool AssertOnUnexpectedError => true;
@@ -32,7 +32,7 @@ public abstract class ToolshedTest : IInvocationContext
[TearDown]
public async Task TearDownInternal()
{
await PairTracker.CleanReturnAsync();
await Pair.CleanReturnAsync();
await TearDown();
}
@@ -45,12 +45,12 @@ public abstract class ToolshedTest : IInvocationContext
[SetUp]
public virtual async Task Setup()
{
PairTracker = await PoolManager.GetServerClient(new PoolSettings {Connected = Connected});
Server = PairTracker.Server;
Pair = await PoolManager.GetServerClient(new PoolSettings {Connected = Connected});
Server = Pair.Server;
if (Connected)
{
Client = PairTracker.Client;
Client = Pair.Client;
await Client.WaitIdleAsync();
}