Skip to content

Commit

Permalink
Fixed tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Measurity committed Oct 29, 2022
1 parent 883e82b commit cfb2938
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Nitrox.Test/Model/Packets/PacketsSerializableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ namespace NitroxModel.Packets
[TestClass]
public class PacketsSerializableTest
{
private readonly HashSet<Type> visitedTypes = new HashSet<Type>();
private readonly HashSet<Type> visitedTypes = new();

private void IsSerializable(Type t)
{
if (t.Name == "Void*")
{
// void* (a member on IntPtr) is not serializable but we can assume this still makes IntPtr serializable.
return;
}
if (visitedTypes.Contains(t))
{
return;
Expand Down

0 comments on commit cfb2938

Please sign in to comment.