# HG changeset patch # User Mads Kiilerich # Date 2012-07-03 23:45:28 # Node ID 885542e7d9b6e25b88fbbbaf06f23f28a8cc80f6 # Parent 14e44933d1755ff9771259da5ef97dd6007a664d 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. diff --git a/tests/test-convert-bzr.t b/tests/test-convert-bzr.t --- a/tests/test-convert-bzr.t +++ b/tests/test-convert-bzr.t @@ -225,6 +225,7 @@ Multiple branches $ 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 @@ Multiple branches $ 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 ..