so suddenly ServerTest is less reliable? DISABLE_LOCAL_CACHE

This commit is contained in:
rusefi 2020-07-19 00:33:19 -04:00
parent a64c08f67a
commit 3480c01bf4
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,7 @@ public class BinaryProtocol implements BinaryProtocolCommands {
private long lastLowRpmTime = System.currentTimeMillis();
private List<StreamFile> 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);

View File

@ -31,6 +31,7 @@ public class FullServerTest {
@Before
public void setTestCertificate() throws MalformedURLException {
ServerTest.commonServerTest();
BinaryProtocol.DISABLE_LOCAL_CACHE = true;
}
@Test