Call wrong father class's method with super().

trove/tests/scenario/runners/negative_cluster_actions_runners.py
'NegativeClusterActionsRunner' is father class of
'MongodbNegativeClusterActionsRunner'. when a class call it's father
class's method, it shuold put itself(not it's father class) in super()
as the first argument. So, in class MongodbNegativeClusterActionsRunner,
should use super(MongodbNegativeClusterActionsRunner, self) instead of
super(NegativeClusterActionsRunner, self).

Change-Id: I125fb2962e2cf8cdab8131eeda4b408b0cd2700f
Closes-Bug: 1681984
This commit is contained in:
zhanggang 2017-04-11 21:59:12 -04:00
parent e8686f1d24
commit dc6e77db28
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class NegativeClusterActionsRunner(TestRunner):
class MongodbNegativeClusterActionsRunner(NegativeClusterActionsRunner):
def run_create_constrained_size_cluster(self):
super(NegativeClusterActionsRunner,
super(MongodbNegativeClusterActionsRunner,
self).run_create_constrained_size_cluster(min_nodes=3,
max_nodes=3)