From ecadb8ab23295c82efb2f07cb41567fb4ff933ab Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 20 Jun 2017 13:14:18 +0530 Subject: [PATCH] [fix] test_document.py --- frappe/tests/test_document.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/tests/test_document.py b/frappe/tests/test_document.py index d82c808a2f..e01fc186bf 100644 --- a/frappe/tests/test_document.py +++ b/frappe/tests/test_document.py @@ -192,10 +192,11 @@ class TestDocument(unittest.TestCase): d.ref_type = doctype d.ref_name = name + d.save() + link_count = frappe.cache().get_value('_link_count') or {} old_count = link_count.get((doctype, name)) or 0 - d.save() frappe.db.commit() link_count = frappe.cache().get_value('_link_count') or {}