From 375236339a7d4160c4ade056c7a3b94960a4b152 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 20 Jun 2017 12:58:40 +0530 Subject: [PATCH] [fix] test_document.py --- frappe/tests/test_document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/tests/test_document.py b/frappe/tests/test_document.py index 40d5108e12..d82c808a2f 100644 --- a/frappe/tests/test_document.py +++ b/frappe/tests/test_document.py @@ -196,13 +196,13 @@ class TestDocument(unittest.TestCase): old_count = link_count.get((doctype, name)) or 0 d.save() + frappe.db.commit() link_count = frappe.cache().get_value('_link_count') or {} new_count = link_count.get((doctype, name)) or 0 self.assertEquals(old_count + 1, new_count) - frappe.db.commit() before_update = frappe.db.get_value(doctype, name, 'idx') update_link_count()