changeset 43850:88ab1295db4c stable

remotefilelog: have command wait for background task in the tests We leverage the feature introduced in the two previous commit to have the main command wait for the background task to be finished before returning. All test still pass and instability seems to have gone away. Most of the sleep and explicit wait are now useless and will be cleaned up in later changesets. Differential Revision: https://phab.mercurial-scm.org/D7586
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 09 Dec 2019 09:57:34 +0100
parents 63bb6dc62f24
children fac25de8cbec
files tests/test-remotefilelog-bgprefetch.t tests/test-remotefilelog-repack-fast.t tests/test-remotefilelog-repack.t
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-remotefilelog-bgprefetch.t	Mon Dec 09 09:54:27 2019 +0100
+++ b/tests/test-remotefilelog-bgprefetch.t	Mon Dec 09 09:57:34 2019 +0100
@@ -6,6 +6,7 @@
   $ cat >> $HGRCPATH <<EOF
   > [devel]
   > remotefilelog.ensurestart=True
+  > remotefilelog.bg-wait=True
   > EOF
 
   $ hg init master
--- a/tests/test-remotefilelog-repack-fast.t	Mon Dec 09 09:54:27 2019 +0100
+++ b/tests/test-remotefilelog-repack-fast.t	Mon Dec 09 09:57:34 2019 +0100
@@ -8,6 +8,7 @@
   > fastdatapack=True
   > [devel]
   > remotefilelog.ensurestart=True
+  > remotefilelog.bg-wait=True
   > EOF
 
   $ hg init master
--- a/tests/test-remotefilelog-repack.t	Mon Dec 09 09:54:27 2019 +0100
+++ b/tests/test-remotefilelog-repack.t	Mon Dec 09 09:57:34 2019 +0100
@@ -6,6 +6,7 @@
   $ cat >> $HGRCPATH <<EOF
   > [devel]
   > remotefilelog.ensurestart=True
+  > remotefilelog.bg-wait=True
   > EOF
 
   $ hg init master