FullServerTest should not depend on very fresh .ini from internet fix #4462
This commit is contained in:
parent
25bb66030f
commit
20fd9d0714
|
@ -42,7 +42,6 @@ public class ControllerConnectionState {
|
||||||
private final SensorsHolder sensorsHolder = new SensorsHolder();
|
private final SensorsHolder sensorsHolder = new SensorsHolder();
|
||||||
private final Birthday birthday = new Birthday();
|
private final Birthday birthday = new Birthday();
|
||||||
private int outputRoundAroundDuration;
|
private int outputRoundAroundDuration;
|
||||||
private final IniFileModel iniFileModel = new IniFileModel();
|
|
||||||
|
|
||||||
public ControllerConnectionState(Socket clientSocket, UserDetailsResolver userDetailsResolver) {
|
public ControllerConnectionState(Socket clientSocket, UserDetailsResolver userDetailsResolver) {
|
||||||
this.clientSocket = clientSocket;
|
this.clientSocket = clientSocket;
|
||||||
|
@ -110,9 +109,10 @@ public class ControllerConnectionState {
|
||||||
Pair<String, String> p = SignatureHelper.getUrl(sessionDetails.getControllerInfo().getSignature());
|
Pair<String, String> p = SignatureHelper.getUrl(sessionDetails.getControllerInfo().getSignature());
|
||||||
if (p == null)
|
if (p == null)
|
||||||
throw new IOException("Invalid signature response");
|
throw new IOException("Invalid signature response");
|
||||||
String localFileName = SignatureHelper.downloadIfNotAvailable(p);
|
// todo: revisit https://github.com/rusefi/rusefi/issues/4462 if ever uncommenting
|
||||||
if (localFileName == null)
|
// String localFileName = SignatureHelper.downloadIfNotAvailable(p);
|
||||||
throw new IOException("Unable to download " + p.second + " from " + p.first);
|
// if (localFileName == null)
|
||||||
|
// throw new IOException("Unable to download " + p.second + " from " + p.first);
|
||||||
// iniFileModel.readIniFile(localFileName);
|
// iniFileModel.readIniFile(localFileName);
|
||||||
|
|
||||||
controllerKey = new ControllerKey(userDetails.getUserId(), sessionDetails.getControllerInfo());
|
controllerKey = new ControllerKey(userDetails.getUserId(), sessionDetails.getControllerInfo());
|
||||||
|
|
Loading…
Reference in New Issue