Skip to content

Commit 6a6ab8c

Browse files
committed
att
1 parent 58ee911 commit 6a6ab8c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ include:
2727
- docker-compose.etcd.yaml
2828
- docker-compose.patroni.yaml
2929
- docker-compose.pgpool.yaml
30-
# - docker-compose.postgres_exporter.yaml
31-
# - docker-compose.pgpool_exporter.yaml
30+
- docker-compose.postgres_exporter.yaml
31+
- docker-compose.pgpool_exporter.yaml
3232

3333
# ═══════════════════════════════════════════════════════════════════
3434
# VOLUMES COMPARTILHADOS

pytest/tests/resilience/test_rto_primary_failure.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ async def test_primary_node_complete_failure(
134134

135135
# Cleanup: reinicia o container e re-anexa o nó ao PgPool via PCP
136136
print(f"\n[Cleanup] 🔄 Reiniciando {initial_primary}...")
137+
138+
await asyncio.sleep(5)
139+
137140
docker.start_container(initial_primary)
138141

139142
# Aguarda container subir
@@ -142,8 +145,6 @@ async def test_primary_node_complete_failure(
142145
# Re-anexa nós ao PgPool
143146
pgpool_manager.attach_down_nodes()
144147

145-
# Aguarda estabilização (pode usar um pouco de tempo aqui, não é medido)
146-
await asyncio.sleep(60)
147148
print("✓ Cleanup concluído")
148149

149150

0 commit comments

Comments
 (0)