Mercurial > hg-stable
changeset 17097:885542e7d9b6
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 04 Jul 2012 01:45:28 +0200 |
parents | 14e44933d175 |
children | 09305d7745dd |
files | tests/test-convert-bzr.t |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 ..