FullServerTest should not depend on very fresh .ini from internet fix #4462

This commit is contained in:
rusefillc 2022-08-22 19:52:09 -04:00
parent a80234ebdc
commit 3808353653
1 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,6 @@ public class ControllerConnectionState {
private final SensorsHolder sensorsHolder = new SensorsHolder();
private final Birthday birthday = new Birthday();
private int outputRoundAroundDuration;
private final IniFileModel iniFileModel = new IniFileModel();
public ControllerConnectionState(Socket clientSocket, UserDetailsResolver userDetailsResolver) {
this.clientSocket = clientSocket;
@ -110,9 +109,10 @@ public class ControllerConnectionState {
Pair<String, String> p = SignatureHelper.getUrl(sessionDetails.getControllerInfo().getSignature());
if (p == null)
throw new IOException("Invalid signature response");
String localFileName = SignatureHelper.downloadIfNotAvailable(p);
if (localFileName == null)
throw new IOException("Unable to download " + p.second + " from " + p.first);
// todo: revisit https://github.com/rusefi/rusefi/issues/4462 if ever uncommenting
// String localFileName = SignatureHelper.downloadIfNotAvailable(p);
// if (localFileName == null)
// throw new IOException("Unable to download " + p.second + " from " + p.first);
// iniFileModel.readIniFile(localFileName);
controllerKey = new ControllerKey(userDetails.getUserId(), sessionDetails.getControllerInfo());