Skip to content

Commit efb3a43

Browse files
committed
Remove gc checks on NetworkListTests
1 parent 009c121 commit efb3a43

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

com.unity.netcode.gameobjects/Tests/Runtime/NetworkVariable/NetworkListTests.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
using Unity.Netcode.TestHelpers.Runtime;
99
using UnityEngine;
1010
using UnityEngine.TestTools;
11-
using UnityEngine.TestTools.Constraints;
12-
using Is = NUnit.Framework.Is;
1311
using Random = UnityEngine.Random;
1412

1513
namespace Unity.Netcode.RuntimeTests
@@ -106,10 +104,7 @@ public IEnumerator ValidateNetworkListSynchronization()
106104
var val = Random.Range(0, 1234);
107105
m_ExpectedValues.Add(val);
108106

109-
Assert.That(() =>
110-
{
111-
authorityInstance.TheList.Add(val);
112-
}, Is.Not.AllocatingGCMemory());
107+
authorityInstance.TheList.Add(val);
113108
}
114109

115110
yield return WaitForConditionOrTimeOut(OnVerifyData);
@@ -129,10 +124,7 @@ public IEnumerator ValidateNetworkListSynchronization()
129124
var valToInsert = Random.Range(1, 99);
130125
m_ExpectedValues.Insert(indexToInsert, valToInsert);
131126

132-
Assert.That(() =>
133-
{
134-
authorityInstance.TheList.Insert(indexToInsert, valToInsert);
135-
}, Is.Not.AllocatingGCMemory());
127+
authorityInstance.TheList.Insert(indexToInsert, valToInsert);
136128
}
137129

138130
yield return WaitForConditionOrTimeOut(OnVerifyData);

0 commit comments

Comments
 (0)