From cfb2938b666bc2e64a3995c7b830d86a08edfc42 Mon Sep 17 00:00:00 2001 From: Measurity Date: Sun, 30 Oct 2022 01:39:42 +0200 Subject: [PATCH] Fixed tests on linux --- Nitrox.Test/Model/Packets/PacketsSerializableTest.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Nitrox.Test/Model/Packets/PacketsSerializableTest.cs b/Nitrox.Test/Model/Packets/PacketsSerializableTest.cs index bb2f929bdb..49589494e8 100644 --- a/Nitrox.Test/Model/Packets/PacketsSerializableTest.cs +++ b/Nitrox.Test/Model/Packets/PacketsSerializableTest.cs @@ -15,10 +15,15 @@ namespace NitroxModel.Packets [TestClass] public class PacketsSerializableTest { - private readonly HashSet visitedTypes = new HashSet(); + private readonly HashSet 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;