tests: make test-convert-bzr.t more stable
authorMads Kiilerich <mads@kiilerich.com>
Wed, 04 Jul 2012 01:45:28 +0200
changeset 17097 885542e7d9b6
parent 17096 14e44933d175
child 17098 09305d7745dd
tests: make test-convert-bzr.t more stable The test would occasionally fail because datesort don't have sub-second granularity and thus can't sort commits made in the same second. The test is made more stable by adding 1 second of sleep to make sure the bzr commits are done with different timestamps.
tests/test-convert-bzr.t
--- a/tests/test-convert-bzr.t	Wed Jun 27 12:37:01 2012 -0700
+++ b/tests/test-convert-bzr.t	Wed Jul 04 01:45:28 2012 +0200
@@ -225,6 +225,7 @@
   $ bzr switch -b branch
   Tree is up to date at revision 1.
   Switched to branch: *repo/branch/ (glob)
+  $ sleep 1
   $ echo b > b
   $ bzr add -q b
   $ bzr ci -qm addb
@@ -233,6 +234,7 @@
   $ bzr switch --force ../repo/trunk
   Updated to revision 1.
   Switched to branch: */repo/trunk/ (glob)
+  $ sleep 1
   $ echo a >> a
   $ bzr ci -qm changea
   $ cd ..