Commit d7245ee9 authored by Julien Muchembled's avatar Julien Muchembled

qa: deindent code

parent 9a5b46dd
...@@ -740,7 +740,6 @@ class Test(NEOThreadedTest): ...@@ -740,7 +740,6 @@ class Test(NEOThreadedTest):
@with_cluster(replicas=1) @with_cluster(replicas=1)
def testStorageReconnectDuringStore(self, cluster): def testStorageReconnectDuringStore(self, cluster):
if 1:
t, c = cluster.getTransaction() t, c = cluster.getTransaction()
c.root()[0] = 'ok' c.root()[0] = 'ok'
cluster.client.cp.closeAll() cluster.client.cp.closeAll()
...@@ -748,7 +747,6 @@ class Test(NEOThreadedTest): ...@@ -748,7 +747,6 @@ class Test(NEOThreadedTest):
@with_cluster(storage_count=2, partitions=2) @with_cluster(storage_count=2, partitions=2)
def testStorageReconnectDuringTransactionLog(self, cluster): def testStorageReconnectDuringTransactionLog(self, cluster):
if 1:
t, c = cluster.getTransaction() t, c = cluster.getTransaction()
cluster.client.cp.closeAll() cluster.client.cp.closeAll()
tid, (t1,) = cluster.client.transactionLog( tid, (t1,) = cluster.client.transactionLog(
...@@ -756,7 +754,6 @@ class Test(NEOThreadedTest): ...@@ -756,7 +754,6 @@ class Test(NEOThreadedTest):
@with_cluster(storage_count=2, partitions=2) @with_cluster(storage_count=2, partitions=2)
def testStorageReconnectDuringUndoLog(self, cluster): def testStorageReconnectDuringUndoLog(self, cluster):
if 1:
t, c = cluster.getTransaction() t, c = cluster.getTransaction()
cluster.client.cp.closeAll() cluster.client.cp.closeAll()
t1, = cluster.client.undoLog(0, 10) t1, = cluster.client.undoLog(0, 10)
...@@ -981,7 +978,6 @@ class Test(NEOThreadedTest): ...@@ -981,7 +978,6 @@ class Test(NEOThreadedTest):
@with_cluster(storage_count=2, partitions=2) @with_cluster(storage_count=2, partitions=2)
def testReadVerifyingStorage(self, cluster): def testReadVerifyingStorage(self, cluster):
if 1:
t1, c1 = cluster.getTransaction() t1, c1 = cluster.getTransaction()
c1.root()['x'] = x = PCounter() c1.root()['x'] = x = PCounter()
t1.commit() t1.commit()
...@@ -991,10 +987,9 @@ class Test(NEOThreadedTest): ...@@ -991,10 +987,9 @@ class Test(NEOThreadedTest):
r = c2.root() r = c2.root()
r['y'] = None r['y'] = None
self.readCurrent(r['x']) self.readCurrent(r['x'])
# Force the new tid to be even, like the modified oid and # Force the new tid to be even, like the modified oid and unlike
# unlike the oid on which we used readCurrent. Thus we check # the oid on which we used readCurrent. Thus we check that the node
# that the node containing only the partition 1 is also # containing only the partition 1 is also involved in tpc_finish.
# involved in tpc_finish.
with cluster.moduloTID(0): with cluster.moduloTID(0):
t2.commit() t2.commit()
for storage in cluster.storage_list: for storage in cluster.storage_list:
......
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