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