so suddenly ServerTest is less reliable? DISABLE_LOCAL_CACHE
This commit is contained in:
parent
a64c08f67a
commit
3480c01bf4
|
@ -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);
|
||||
|
|
|
@ -31,6 +31,7 @@ public class FullServerTest {
|
|||
@Before
|
||||
public void setTestCertificate() throws MalformedURLException {
|
||||
ServerTest.commonServerTest();
|
||||
BinaryProtocol.DISABLE_LOCAL_CACHE = true;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue