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

@ -1,7 +1,7 @@
using Server.Items;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
/// <summary>
/// Tests for CanFitItem which allows Surface+Impassable tiles (tables, furniture) as valid surfaces.
@ -9,13 +9,6 @@ namespace Server.Tests.Tests.Maps;
[Collection("Sequential Server Tests")]
public class CanFitItemTests
{
private readonly ServerFixture _fixture;
public CanFitItemTests(ServerFixture fixture)
{
_fixture = fixture;
}
private void SkipIfNoTileData()
{
Skip.If(!ServerFixture.TileDataLoaded, "TileData not loaded - client files required");

View file

@ -1,6 +1,6 @@
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
/// <summary>
/// Tests for CanSpawnMobile that don't require TileData (client files).

View file

@ -1,7 +1,7 @@
using Server.Items;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
/// <summary>
/// Tests for CanSpawnMobile that require TileData (client files) to be loaded.

View file

@ -5,7 +5,7 @@ using Server.Accounting;
using Server.Network;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class ClientEnumeratorTests

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class ItemByDistanceEnumeratorTests

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using Server.Items;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class ItemEnumeratorTests

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class MobileByDistanceEnumeratorTests

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class MobileEnumeratorTests

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using Server.Items;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class MultiEnumeratorTests

View file

@ -2,7 +2,7 @@ using System.Collections.Generic;
using Server.Items;
using Xunit;
namespace Server.Tests.Tests.Maps;
namespace Server.Tests.Maps;
[Collection("Sequential Server Tests")]
public class StaticTileEnumeratorTests