From 3480c01bf4378deb54e60ee57d142d8cea819de7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 19 Jul 2020 00:33:19 -0400 Subject: [PATCH] so suddenly ServerTest is less reliable? DISABLE_LOCAL_CACHE --- .../main/java/com/rusefi/binaryprotocol/BinaryProtocol.java | 3 +++ java_console/ui/src/test/java/com/rusefi/FullServerTest.java | 1 + 2 files changed, 4 insertions(+) diff --git a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java index 8e64d907ab..f466b64564 100644 --- a/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java +++ b/java_console/io/src/main/java/com/rusefi/binaryprotocol/BinaryProtocol.java @@ -80,6 +80,7 @@ public class BinaryProtocol implements BinaryProtocolCommands { private long lastLowRpmTime = System.currentTimeMillis(); private List compositeLogs = new ArrayList<>(); + public static boolean DISABLE_LOCAL_CACHE; public static String findCommand(byte command) { switch (command) { @@ -384,6 +385,8 @@ public class BinaryProtocol implements BinaryProtocolCommands { } private ConfigurationImage getAndValidateLocallyCached() { + if (DISABLE_LOCAL_CACHE) + return null; ConfigurationImage localCached; try { localCached = ConfigurationImageFile.readFromFile(CONFIGURATION_RUSEFI_BINARY); diff --git a/java_console/ui/src/test/java/com/rusefi/FullServerTest.java b/java_console/ui/src/test/java/com/rusefi/FullServerTest.java index d961f06c6f..f3f10108dd 100644 --- a/java_console/ui/src/test/java/com/rusefi/FullServerTest.java +++ b/java_console/ui/src/test/java/com/rusefi/FullServerTest.java @@ -31,6 +31,7 @@ public class FullServerTest { @Before public void setTestCertificate() throws MalformedURLException { ServerTest.commonServerTest(); + BinaryProtocol.DISABLE_LOCAL_CACHE = true; } @Test