Minor test fixes (#25423)

* Minor test fixes

c

* fix?
This commit is contained in:
metalgearsloth
2024-02-27 10:29:36 +11:00
committed by GitHub
parent 32a440b487
commit 0889d6b0b0
2 changed files with 4 additions and 3 deletions

View File

@@ -70,9 +70,11 @@ public sealed partial class TestPair
if (settings.ShouldBeConnected)
{
Client.SetConnectTarget(Server);
await Client.WaitIdleAsync();
var netMgr = Client.ResolveDependency<IClientNetManager>();
await Client.WaitPost(() =>
{
var netMgr = IoCManager.Resolve<IClientNetManager>();
if (!netMgr.IsConnected)
{
netMgr.ClientConnect(null!, 0, null!);