Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9f48e1b

Browse files
committed
sweep before test start
1 parent e56faad commit 9f48e1b

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

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

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)