Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_dbcrash.py
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
assert self.restart_counts != [0, 0, 0] | assert self.restart_counts != [0, 0, 0] | ||||
# Make sure we tested the case of crash-during-recovery. | # Make sure we tested the case of crash-during-recovery. | ||||
assert self.crashed_on_restart > 0 | assert self.crashed_on_restart > 0 | ||||
# Warn if any of the nodes escaped restart. | # Warn if any of the nodes escaped restart. | ||||
for i in range(3): | for i in range(3): | ||||
if self.restart_counts[i] == 0: | if self.restart_counts[i] == 0: | ||||
self.log.warn( | self.log.warning( | ||||
"Node {} never crashed during utxo flush!".format(i)) | "Node {} never crashed during utxo flush!".format(i)) | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
ChainstateWriteCrashTest().main() | ChainstateWriteCrashTest().main() |