fix: Exempts localhost from IPLimiter. Preps testing for io_uring (#2316)

### Summary
* Exempts localhost from IPLimiter
* Updates tests to have proper sequential testing with packets
* Updates tests to clean up NetState
This commit is contained in:
Kamron Batman 2026-01-20 08:54:15 -08:00 • committed by GitHub
parent 8133983b64
commit 1e4c32c809
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 4612 additions and 4616 deletions

View file

@ -12,7 +12,7 @@ public class GumpPacketTests
{
var expected = new CloseGump(typeId, buttonId).Compile();
var ns = PacketTestUtilities.CreateTestNetState();
using var ns = PacketTestUtilities.CreateTestNetState();
ns.SendCloseGump(typeId, buttonId);
var result = ns.SendPipe.Reader.AvailableToRead();
@ -29,7 +29,7 @@ public class GumpPacketTests
var expected = new DisplaySignGump(gumpSerial, gumpId, unknownString, caption).Compile();
var ns = PacketTestUtilities.CreateTestNetState();
using var ns = PacketTestUtilities.CreateTestNetState();
ns.SendDisplaySignGump(gumpSerial, gumpId, unknownString, caption);
var result = ns.SendPipe.Reader.AvailableToRead();
@ -41,7 +41,7 @@ public class GumpPacketTests
{
var gump = new NameChangeDeedGump();
var ns = PacketTestUtilities.CreateTestNetState();
using var ns = PacketTestUtilities.CreateTestNetState();
var expected = gump.Compile(ns).Compile();
ns.SendGump(gump);
@ -60,7 +60,7 @@ public class GumpPacketTests
var gump = new AdminGump(m, AdminGumpPage.Clients);
var ns = PacketTestUtilities.CreateTestNetState();
using var ns = PacketTestUtilities.CreateTestNetState();
var expected = gump.Compile(ns).Compile();
ns.SendGump(gump);