Improve logging for RTSP server media publication failure in OpenViduTestE2e

pull/860/head
pabloFuente 2026-02-20 14:33:32 +01:00
parent bc38b18bc5
commit 48341c21f6
1 changed files with 3 additions and 1 deletions

View File

@ -271,7 +271,9 @@ public class OpenViduTestE2e {
}
t--;
}
if (!pattern.matcher(container.getLogs()).find()) {
String logs = container.getLogs();
if (!pattern.matcher(logs).find()) {
System.err.println("Container logs:\n" + logs + "\nEnd of container logs\n");
Assertions.fail("RTSP server has not published media in " + secondsTimeout + " seconds. Looking for regex "
+ regex);
}