Skip to content

Commit 3ab1532

Browse files
committed
clean up recovery tests
1 parent e6b4f3d commit 3ab1532

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

contrib/mmts/tests2/lib/bank_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ def print_agg(self):
3838

3939
columns = ['running', 'running_latency', 'max_latency', 'finish']
4040

41-
#rows = [ k+str(i+1) for k in agg.keys() for i, agg in enumerate(aggs)]
42-
4341
print("\t\t", end="")
4442
for col in columns:
4543
print(col, end="\t")

contrib/mmts/tests2/test_recovery.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,18 @@ def test_1_node_disconnect(self):
3535
subprocess.check_call(['blockade','partition','node3'])
3636
print('Node3 disconnected')
3737

38-
for i in range(1000):
38+
for i in range(5):
3939
time.sleep(3)
4040
self.clients.print_agg()
4141

42+
subprocess.check_call(['blockade','join'])
43+
print("Node3 joined back")
44+
45+
for i in range(50):
46+
time.sleep(3)
47+
self.clients.print_agg()
48+
49+
4250
if __name__ == '__main__':
4351
unittest.main()
4452

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