Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f48e1b

Browse files
committed
sweep before test start
1 parente56faad commit9f48e1b

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-
sleep10# wait for mmts init
50+
sleep15# 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-
forclientinself.clients:
42-
agg=client.history.aggregate()
43-
print(agg)
40+
41+
whileTrue:
42+
time.sleep(3)
43+
forclientinself.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)

[8]ページ先頭

©2009-2025 Movatter.jp