Merge pull request #15179 from taosdata/enh/crash_gen
Minor enhancement to crash_gen tool to display unexpected success tasks
This commit is contained in:
commit
4aa75d79c4
|
@ -741,7 +741,10 @@ class AnyState:
|
||||||
sCnt += 1
|
sCnt += 1
|
||||||
if (sCnt >= 2):
|
if (sCnt >= 2):
|
||||||
raise CrashGenError(
|
raise CrashGenError(
|
||||||
"Unexpected more than 1 success with task: {}".format(cls))
|
"Unexpected more than 1 success with task: {}, in task set: {}".format(
|
||||||
|
cls.__name__, # verified just now that isinstance(task, cls)
|
||||||
|
[c.__class__.__name__ for c in tasks]
|
||||||
|
))
|
||||||
|
|
||||||
def assertIfExistThenSuccess(self, tasks, cls):
|
def assertIfExistThenSuccess(self, tasks, cls):
|
||||||
sCnt = 0
|
sCnt = 0
|
||||||
|
|
Loading…
Reference in New Issue