Skip to content

Commit 1e4c32c

Browse files
authored
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
1 parent 8133983 commit 1e4c32c

File tree

77 files changed

+3999
-4003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3999
-4003
lines changed

Projects/Server.Tests/Fixtures/TestMapDefinitions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Server.Tests;
1+
namespace Server.Tests.Maps;
22

33
public static class TestMapDefinitions
44
{

Projects/Server.Tests/Fixtures/TestServerInitializer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Reflection;
33
using System.Threading;
44
using Server.Items;
5+
using Server.Tests.Maps;
56

67
namespace Server.Tests;
78

Projects/Server.Tests/Tests/Buffers/STArrayPoolTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Server.Buffers;
33
using Xunit;
44

5-
namespace Server.Tests.Tests.Buffers;
5+
namespace Server.Tests.Buffers;
66

77
[Collection("Sequential Server Tests")]
88
public class STArrayPoolTests

Projects/Server.Tests/Tests/Buffers/SpanReaderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using Xunit;
55

6-
namespace Server.Tests;
6+
namespace Server.Tests.Buffers;
77

88
public class SpanReaderTests
99
{

Projects/Server.Tests/Tests/Buffers/SpanWriterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using Xunit;
55

6-
namespace Server.Tests;
6+
namespace Server.Tests.Buffers;
77

88
public class SpanWriterTests
99
{

Projects/Server.Tests/Tests/Maps/CanFitItemTests.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
using Server.Items;
22
using Xunit;
33

4-
namespace Server.Tests.Tests.Maps;
4+
namespace Server.Tests.Maps;
55

66
/// <summary>
77
/// Tests for CanFitItem which allows Surface+Impassable tiles (tables, furniture) as valid surfaces.
88
/// </summary>
99
[Collection("Sequential Server Tests")]
1010
public class CanFitItemTests
1111
{
12-
private readonly ServerFixture _fixture;
13-
14-
public CanFitItemTests(ServerFixture fixture)
15-
{
16-
_fixture = fixture;
17-
}
18-
1912
private void SkipIfNoTileData()
2013
{
2114
Skip.If(!ServerFixture.TileDataLoaded, "TileData not loaded - client files required");

Projects/Server.Tests/Tests/Maps/CanSpawnMobileTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Xunit;
22

3-
namespace Server.Tests.Tests.Maps;
3+
namespace Server.Tests.Maps;
44

55
/// <summary>
66
/// Tests for CanSpawnMobile that don't require TileData (client files).

Projects/Server.Tests/Tests/Maps/CanSpawnMobileTileDataTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Server.Items;
22
using Xunit;
33

4-
namespace Server.Tests.Tests.Maps;
4+
namespace Server.Tests.Maps;
55

66
/// <summary>
77
/// Tests for CanSpawnMobile that require TileData (client files) to be loaded.

Projects/Server.Tests/Tests/Maps/ClientEnumeratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Server.Network;
66
using Xunit;
77

8-
namespace Server.Tests.Tests.Maps;
8+
namespace Server.Tests.Maps;
99

1010
[Collection("Sequential Server Tests")]
1111
public class ClientEnumeratorTests

Projects/Server.Tests/Tests/Maps/ItemByDistanceEnumeratorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using Xunit;
44

5-
namespace Server.Tests.Tests.Maps;
5+
namespace Server.Tests.Maps;
66

77
[Collection("Sequential Server Tests")]
88
public class ItemByDistanceEnumeratorTests

0 commit comments

Comments
 (0)