3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-07 14:54:15 +00:00

Fix broken test case.

This commit is contained in:
Matt Corallo 2013-12-14 01:11:52 -05:00
parent 77f99a596f
commit 2f29660d0d

View File

@ -388,10 +388,8 @@ public class NetworkAbstractionTests {
} catch (IllegalStateException e) {}
// Override max size and make sure the server drops our connection
byte[] messageBytes5 = msg5.toByteArray();
byte[] messageLength5 = new byte[4];
Utils.uint32ToByteArrayBE(messageBytes5.length, messageLength5, 0);
client.writeBytes(messageBytes5);
Utils.uint32ToByteArrayBE(msg5.toByteArray().length, messageLength5, 0);
client.writeBytes(messageLength5);
serverConnectionClosed.get();