Skip to content

Commit 2135458

Browse files
committed
sweep before test start
1 parent ee849b0 commit 2135458

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

contrib/mmts/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@ check:
4040
xcheck:
4141
#pip install -r tests2/requirements.txt
4242
docker build -t pgmmts .
43+
cd tests2 && blockade destroy || true
44+
cd tests2 && docker rm node1 || true
45+
cd tests2 && docker rm node2 || true
46+
cd tests2 && docker rm node3 || true
47+
cd tests2 && docker network rm tests2_net || true
48+
cd tests2 && docker network rm tests2_net || true
4349
cd tests2 && blockade up
44-
sleep 10 # wait for mmts init
50+
sleep 15 # wait for mmts init
4551
cd tests2 && python test_recovery.py || true
46-
cd tests2 && blockade destroy
52+
#cd tests2 && blockade destroy
4753

contrib/mmts/tests2/test_recovery.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ def test_1_node_disconnect(self):
3737
print('Node3 disconnected')
3838

3939
print('Waiting 20s to discover failure')
40-
time.sleep(20)
41-
for client in self.clients:
42-
agg = client.history.aggregate()
43-
print(agg)
40+
41+
while True:
42+
time.sleep(3)
43+
for client in self.clients:
44+
agg = client.history.aggregate()
45+
print(agg)
4446

4547
# print('Waiting 3s to check operability')
4648
# time.sleep(3)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy