manifestcache: clear the cache before testing the debug command
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 14 Mar 2019 09:12:55 +0000
changeset 41963 6386f9a421d2
parent 41962 07c80298b5a1
child 41964 d121823072b8
manifestcache: clear the cache before testing the debug command Right now the cache is empty before this section of the test. However, we are about to improve the persistence of the cache (putting it under `wllock`, intead of `lock`). So we install the cleanup before.
tests/test-manifest.t
--- a/tests/test-manifest.t	Fri Mar 15 12:17:30 2019 +0000
+++ b/tests/test-manifest.t	Thu Mar 14 09:12:55 2019 +0000
@@ -108,6 +108,10 @@
   $ hg debugmanifestfulltextcache
   cache empty
 
+(Clearing the cache in case of any content)
+
+  $ hg debugmanifestfulltextcache --clear
+
 Adding a new persistent entry in the cache
 
   $ hg debugmanifestfulltextcache --add 1e01206b1d2f72bd55f2a33fa8ccad74144825b7