so suddenly ServerTest is less reliable?

This commit is contained in:
rusefi 2020-07-18 23:27:49 -04:00
parent 80153e276b
commit 9afe527a9a
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
int crc = in.readInt();
int fromPacket = IoHelper.getCrc32(packet);
if (crc != fromPacket)
throw new IllegalStateException("CRC mismatch " + crc + " vs " + fromPacket + " " + IoStream.printHexBinary(packet));
throw new IllegalStateException("CRC mismatch crc=" + Integer.toString(crc, 16) + " vs packet=" + Integer.toString(fromPacket, 16) + " len=" + packet.length + " data: " + IoStream.printHexBinary(packet));
return new Packet(packet, crc);
}

View File

@ -121,7 +121,7 @@ public class ServerTest {
int serverPortForRemoteUsers = 6800;
UserDetailsResolver userDetailsResolver = authToken -> new UserDetails(authToken.substring(0, 5), authToken.charAt(6));
int httpPort = 8001;
int httpPort = 8002;
CountDownLatch disconnectedCountDownLatch = new CountDownLatch(1);
@ -158,7 +158,7 @@ public class ServerTest {
CountDownLatch controllerRegistered = new CountDownLatch(1);
UserDetailsResolver userDetailsResolver = authToken -> new UserDetails(authToken.substring(0, 5), userId);
int httpPort = 8001;
int httpPort = 8003;
try (Backend backend = new Backend(userDetailsResolver, httpPort, logger) {
@Override
protected void onRegister(ControllerConnectionState controllerConnectionState) {