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:
parent
e8686f1d24
commit
dc6e77db28
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue