tests: remove potential mtime ambiguity in a dirstate test
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 23 Nov 2021 18:11:42 +0100
changeset 48394 eea70e3539ed
parent 48393 1a8a70b4b0ad
child 48395 9ae0353c9f5d
tests: remove potential mtime ambiguity in a dirstate test If the test was fast enough, some mtime where not stored. We now wait long enough to ensure the mtime is no longer ambiguous. Differential Revision: https://phab.mercurial-scm.org/D11798
tests/test-rebuildstate.t
--- a/tests/test-rebuildstate.t	Fri Nov 19 03:03:01 2021 +0100
+++ b/tests/test-rebuildstate.t	Tue Nov 23 18:11:42 2021 +0100
@@ -79,6 +79,7 @@
   $ touch foo bar qux
   $ hg add qux
   $ hg remove bar
+  $ sleep 1 # remove potential ambiguity in mtime
   $ hg status -A
   A qux
   R bar
@@ -106,6 +107,7 @@
   $ hg manifest
   bar
   foo
+  $ sleep 1 # remove potential ambiguity in mtime
   $ hg status -A
   A qux
   R bar