Commit 949f7e0f authored by Julien Muchembled's avatar Julien Muchembled

threaded: fix typo

parent 34a2fea3
...@@ -729,7 +729,7 @@ class NEOCluster(object): ...@@ -729,7 +729,7 @@ class NEOCluster(object):
if node[2] == uuid: if node[2] == uuid:
return node[3] return node[3]
def getOudatedCells(self): def getOutdatedCells(self):
return [cell for row in self.neoctl.getPartitionRowList()[1] return [cell for row in self.neoctl.getPartitionRowList()[1]
for cell in row[1] for cell in row[1]
if cell[1] == CellStates.OUT_OF_DATE] if cell[1] == CellStates.OUT_OF_DATE]
......
...@@ -383,7 +383,7 @@ class Test(NEOThreadedTest): ...@@ -383,7 +383,7 @@ class Test(NEOThreadedTest):
s1, s2 = cluster.storage_list s1, s2 = cluster.storage_list
try: try:
cluster.start() cluster.start()
self.assertEqual([], cluster.getOudatedCells()) self.assertEqual([], cluster.getOutdatedCells())
finally: finally:
cluster.stop() cluster.stop()
# restart it with one storage only # restart it with one storage only
...@@ -507,13 +507,13 @@ class Test(NEOThreadedTest): ...@@ -507,13 +507,13 @@ class Test(NEOThreadedTest):
try: try:
cluster.start() cluster.start()
checkNodeState(NodeStates.RUNNING) checkNodeState(NodeStates.RUNNING)
self.assertEqual([], cluster.getOudatedCells()) self.assertEqual([], cluster.getOutdatedCells())
# drop one # drop one
cluster.neoctl.dropNode(s1.uuid) cluster.neoctl.dropNode(s1.uuid)
checkNodeState(None) checkNodeState(None)
self.tic() # Let node state update reach remaining storage self.tic() # Let node state update reach remaining storage
checkNodeState(None) checkNodeState(None)
self.assertEqual([], cluster.getOudatedCells()) self.assertEqual([], cluster.getOutdatedCells())
# restart with s2 only # restart with s2 only
finally: finally:
cluster.stop() cluster.stop()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment