changeset 5340e72a90c2 in trytond:5.4
details: https://hg.tryton.org/trytond?cmd=changeset;node=5340e72a90c2
description:
Wait cache sync after clearing cache in test
The test relies on the cache being cleared before setting a value from
the old
transaction. So we must wait for the synchronisation to happen when
channel is
used.
issue9413
review327461011
(grafted from e14beb9c906cdebd2b28a1115cddfcad8e52d6c3)
diffstat:
trytond/tests/test_cache.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 34ef08b33f84 -r 5340e72a90c2 trytond/tests/test_cache.py
--- a/trytond/tests/test_cache.py Fri Jun 12 12:36:47 2020 +0200
+++ b/trytond/tests/test_cache.py Wed Jun 17 00:25:57 2020 +0200
@@ -136,6 +136,7 @@
self.addCleanup(transaction2.stop)
cache.clear()
transaction2.commit()
+ self.wait_cache_sync()
# Set value from old transaction
Transaction().set_current_transaction(transaction1)