Skip to content

Commit

Permalink
Minor tweak of crash_gen script
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Li committed Jun 10, 2020
1 parent 5119536 commit c6b71ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/pytest/crash_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ def getInfo(self):
def verifyTasksToState(self, tasks, newState):
if ( newState.equals(AnyState.STATE_EMPTY) ):
self.hasSuccess(tasks, DropDbTask)
self.assertAtMostOneSuccess(tasks, DropDbTask) # TODO: dicy
if ( not self.hasTask(tasks, CreateDbTask) ) :
self.assertAtMostOneSuccess(tasks, DropDbTask) # TODO: dicy
elif ( newState.equals(AnyState.STATE_DB_ONLY) ): # in DB only
if ( not self.hasTask(tasks, CreateDbTask)): # without a create_db task
self.assertNoTask(tasks, DropDbTask) # we must have drop_db task
Expand Down

0 comments on commit c6b71ab

Please sign in to comment.