Fix e2e tests

pull/649/head
pabloFuente 2021-08-11 02:20:53 +02:00
parent b9fa01eccb
commit 4d3602dc30
2 changed files with 3 additions and 3 deletions

View File

@ -1154,10 +1154,10 @@ public class KurentoSessionManager extends SessionManager {
location = this.geoLocationByIp.getLocationByIp(ipAddress); location = this.geoLocationByIp.getLocationByIp(ipAddress);
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
location = new GeoLocation(ipAddress.getHostAddress()); location = new GeoLocation(ipAddress != null ? ipAddress.getHostAddress() : null);
} catch (Exception e) { } catch (Exception e) {
log.warn("Error getting address location: {}", e.getMessage()); log.warn("Error getting address location: {}", e.getMessage());
location = new GeoLocation(ipAddress.getHostAddress()); location = new GeoLocation(ipAddress != null ? ipAddress.getHostAddress() : null);
} }
String rtspConnectionId = kMediaOptions.getTypeOfVideo() + "_" + protocol + "_" String rtspConnectionId = kMediaOptions.getTypeOfVideo() + "_" + protocol + "_"

View File

@ -3431,7 +3431,7 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestAppE2eTest {
Assert.assertEquals("Wrong number of properties in event 'sessionCreated'", 3 + 1, event.keySet().size()); Assert.assertEquals("Wrong number of properties in event 'sessionCreated'", 3 + 1, event.keySet().size());
event = CustomWebhook.waitForEvent("participantJoined", 2); event = CustomWebhook.waitForEvent("participantJoined", 2);
Assert.assertEquals("Wrong number of properties in event 'participantJoined'", 9 + 1, Assert.assertEquals("Wrong number of properties in event 'participantJoined'", 10 + 1,
event.keySet().size()); event.keySet().size());
event = CustomWebhook.waitForEvent("webrtcConnectionCreated", 2); event = CustomWebhook.waitForEvent("webrtcConnectionCreated", 2);