openvidu-test-e2e: relax connectionQualityRampUpTest with broader acceptance

pull/907/head
pabloFuente 2026-09-05 21:18:41 +02:00
parent 774b596091
commit cd8da914c1
1 changed files with 3 additions and 2 deletions

View File

@ -1207,7 +1207,8 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
ConnectionQuality.EXCELLENT, 45, "Expected connection quality to settle at EXCELLENT")); ConnectionQuality.EXCELLENT, 45, "Expected connection quality to settle at EXCELLENT"));
String container = getNetemContainerName(punchbagUser); String container = getNetemContainerName(punchbagUser);
final int HOLD_SECONDS = 8; final int STEP_PCT = 10;
final int HOLD_SECONDS = 16;
// Ramp the PUBLISHER's uplink loss and record, at each step, the settled // Ramp the PUBLISHER's uplink loss and record, at each step, the settled
// quality of both the impaired publisher (PunchbagUser) and the untouched // quality of both the impaired publisher (PunchbagUser) and the untouched
@ -1215,7 +1216,7 @@ public class OpenViduTestAppE2eTest extends AbstractOpenViduTestappE2eTest {
Map<Integer, ConnectionQuality> publisherQuality = new LinkedHashMap<>(); Map<Integer, ConnectionQuality> publisherQuality = new LinkedHashMap<>();
Map<Integer, ConnectionQuality> subscriberQuality = new LinkedHashMap<>(); Map<Integer, ConnectionQuality> subscriberQuality = new LinkedHashMap<>();
try { try {
for (int pct = 5; pct <= 95; pct += 5) { for (int pct = STEP_PCT; pct <= 90; pct += STEP_PCT) {
log.info("Packet loss to " + pct + "%"); log.info("Packet loss to " + pct + "%");
NetworkConditioner.updateOutboundLossPercent(container, pct); NetworkConditioner.updateOutboundLossPercent(container, pct);
Thread.sleep(HOLD_SECONDS * 1000L); Thread.sleep(HOLD_SECONDS * 1000L);