Skip to content

Commit 73a69ee

Browse files
committed
fix FastBuffer tests
1 parent b006a6d commit 73a69ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

com.unity.netcode.gameobjects/Tests/Editor/Serialization/BaseFastBufferReaderWriterTest.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ public void BaseTypeTest(Type testType, WriteType writeType)
269269
else if (testType == typeof(SceneHandle))
270270
{
271271
#if SCENE_MANAGEMENT_SCENE_HANDLE_NO_INT_CONVERSION
272-
var handle = SceneHandle.FromRawData((ulong)random.Next());
272+
RunTestWithWriteType(SceneHandle.FromRawData((ulong)random.Next()), writeType);
273273
#else
274-
SceneHandle handle = random.Next();
274+
RunTestWithWriteType(random.Next(), writeType);
275275
#endif
276-
RunTestWithWriteType(handle, writeType);
277276
}
278277
else if (testType == typeof(TestStruct))
279278
{

0 commit comments

Comments
 (0)