Skip to content

Commit c0d28a3

Browse files
committed
large service transmission failing
1 parent f662cbf commit c0d28a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/P4VFS.UnitTest/Source/UnitTestCommon.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@ public void SocketModelCommunicationTest()
14321432
const int maxPackageSize = 1<<25; // 32*1024*1024 (32 MiB)
14331433
for (int packageSize = 1; packageSize <= maxPackageSize; packageSize <<= 5)
14341434
{
1435+
VirtualFileSystemLog.Info("SocketModelCommunicationTest ReflectPackage size {0}", packageSize);
14351436
byte[] packageBytes = new byte[packageSize];
14361437
uint data = 0;
14371438
for (int index = 0; index < packageSize; ++index)
@@ -1444,8 +1445,8 @@ public void SocketModelCommunicationTest()
14441445
data >>= 8;
14451446
}
14461447
byte[] receiveBytes = client.ReflectPackage(packageBytes);
1447-
Assert(receiveBytes.Length == packageBytes.Length);
1448-
Assert(Array.Equals(receiveBytes, packageBytes));
1448+
Assert(receiveBytes?.Length == packageBytes.Length);
1449+
Assert(receiveBytes.SequenceEqual(packageBytes));
14491450
}
14501451

14511452
ServiceRestart();

0 commit comments

Comments
 (0)