We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc616219 commita0b40e3Copy full SHA for a0b40e3
contrib/raftable/tests/test_recovery.py
@@ -44,6 +44,35 @@ def test_1_node_disconnect(self):
44
# check we didn't stuck in set op
45
self.assertTrue(agg['setkey']['running_latency']<3)
46
47
+deftest_1_node_in_node_out(self):
48
+print('### InOutTest ###')
49
+
50
+subprocess.check_call(['blockade','partition','node3'])
51
+print('Node3 disconnected')
52
53
+print('Waiting 5s')
54
+time.sleep(5)
55
56
+forclientinself.clients:
57
+agg=client.history.aggregate()
58
+print(agg)
59
+# check we didn't stuck in set op
60
+self.assertTrue(agg['setkey']['running_latency']<3)
61
62
+subprocess.check_call(['blockade','join'])
63
+print('Node3 connected')
64
65
66
67
68
69
70
71
72
73
74
75
76
if__name__=='__main__':
77
unittest.main()
78