Skip to content
Snippets Groups Projects
Commit 17c84d6c authored by Alexander Aghili's avatar Alexander Aghili
Browse files

fix no good very bad statement

parent 0429c19e
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ from ...utils.kvs_api import DEFAULT_TIMEOUT
def basic_kv_1(conductor: ClusterConductor, dir, log: Logger):
with KVSTestFixture(conductor, dir, log, node_count=2) as fx:
c = KVSMultiClient(fx.clients, "client", log)
view = {'shard1': [conductor.get_nodes()[0].get_view()], 'shard2': [conductor.get_nodes()[1].get_view()]}
view = {'shard1': [conductor.get_node(0).get_view()], 'shard2': [conductor.get_node(1).get_view()]}
fx.broadcast_view(view)
r = c.put(0, "x", "1")
......
......@@ -468,7 +468,9 @@ class ClusterConductor:
def get_nodes(self):
return self.nodes
def get_node(self, index):
return self.nodes[index]
def get_partition_view(self, partition_id: str):
net_name = f"kvs_{self.group_id}_net_{partition_id}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment