Merge pull request #11647 from deepeshgarg007/test_fix
fix: Ignore hash collision count limit in tests
This commit is contained in:
commit
c2f780e26e
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ class BaseDocument(object):
|
|||
if self.meta.autoname=="hash":
|
||||
# hash collision? try again
|
||||
frappe.flags.retry_count = (frappe.flags.retry_count or 0) + 1
|
||||
if frappe.flags.retry_count > 5:
|
||||
if frappe.flags.retry_count > 5 and not frappe.flags.in_test:
|
||||
raise
|
||||
self.name = None
|
||||
self.db_insert()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue