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:
parent
8133983b64
commit
1e4c32c809
77 changed files with 4612 additions and 4616 deletions
|
|
@ -8,6 +8,7 @@ using Xunit;
|
|||
|
||||
namespace UOContent.Tests;
|
||||
|
||||
[Collection("Sequential UOContent Tests")]
|
||||
public class BuffIconPacketTests
|
||||
{
|
||||
[Theory]
|
||||
|
|
@ -20,7 +21,7 @@ public class BuffIconPacketTests
|
|||
(Serial)mob, iconID, titleCliloc, secondaryCliloc, args, timeSpan
|
||||
).Compile();
|
||||
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.SendAddBuffPacket((Serial)mob, iconID, titleCliloc, secondaryCliloc, args, (int)timeSpan.TotalMilliseconds);
|
||||
|
||||
var result = ns.SendPipe.Reader.AvailableToRead();
|
||||
|
|
@ -34,7 +35,7 @@ public class BuffIconPacketTests
|
|||
var buffIcon = BuffIcon.Disguised;
|
||||
var expected = new RemoveBuffPacket(m, buffIcon).Compile();
|
||||
|
||||
var ns = PacketTestUtilities.CreateTestNetState();
|
||||
using var ns = PacketTestUtilities.CreateTestNetState();
|
||||
ns.SendRemoveBuffPacket(m, buffIcon);
|
||||
|
||||
var result = ns.SendPipe.Reader.AvailableToRead();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue