changeset 6328:991f7518c3f3

tests: remove some unnecessary sleeps
author Matt Mackall <mpm@selenic.com>
date Thu, 20 Mar 2008 14:14:15 -0500
parents 6d952dc2abc9
children 3f754be7abbb
files tests/test-cat tests/test-keyword tests/test-keyword.out tests/test-status
diffstat 4 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-cat	Thu Mar 20 13:53:59 2008 -0500
+++ b/tests/test-cat	Thu Mar 20 14:14:15 2008 -0500
@@ -9,7 +9,6 @@
 hg rm a
 hg cat a
 hg cat --decode a # more tests in test-encode
-sleep 1 # make sure mtime is changed
 echo 1 > b
 hg ci -m m -d "1000000 0"
 echo 2 > b
--- a/tests/test-keyword	Thu Mar 20 13:53:59 2008 -0500
+++ b/tests/test-keyword	Thu Mar 20 14:14:15 2008 -0500
@@ -158,8 +158,7 @@
 hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>'
 echo % cat a c
 cat a c
-echo % touch copied c after 1 second
-sleep 1
+echo % touch copied c
 touch c
 echo % status
 hg status
--- a/tests/test-keyword.out	Thu Mar 20 13:53:59 2008 -0500
+++ b/tests/test-keyword.out	Thu Mar 20 14:14:15 2008 -0500
@@ -230,7 +230,7 @@
 expand $Id: c,v e22d299ac0c2 1970/01/01 00:00:01 user $
 do not process $Id:
 xxx $
-% touch copied c after 1 second
+% touch copied c
 % status
 % kwfiles
 a
--- a/tests/test-status	Thu Mar 20 13:53:59 2008 -0500
+++ b/tests/test-status	Thu Mar 20 14:14:15 2008 -0500
@@ -23,7 +23,6 @@
 touch modified removed deleted ignored
 echo "^ignored$" > .hgignore
 hg ci -A -m 'initial checkin' -d "1000000 0"
-sleep 1 # make sure mtime is changed
 touch modified added unknown ignored
 hg add added
 hg remove removed