Пофиксила прохождение тестов для OTel

This commit is contained in:
vasyukova
2026-10-30 19:16:04 +03:00
parent 13d4411534
commit 1be8f323a5
2 changed files with 24 additions and 1 deletions
+4 -1
View File
@@ -482,7 +482,10 @@ def test_telemetry_backend_down(c):
time.sleep(0.2)
check(ok >= 5, "API unavailable while telemetry backend is down (ok=%d)" % ok)
ps = _compose_exec("otel-collector", "true")
# В образе otel/opentelemetry-collector-contrib нет coreutils `true`,
# поэтому проверяем живость штатным бинарником самого коллектора
# (тот же приём, что в healthcheck compose.yaml).
ps = _compose_exec("otel-collector", "/otelcol-contrib", "--version")
check(ps.returncode == 0,
"otel-collector died while backends were unavailable")