# HG changeset patch # User Pierre-Yves David # Date 2019-12-09 08:57:34 # Node ID 88ab1295db4ce798eb535e42b156ade7a44aaa4b # Parent 63bb6dc62f2477db605b5a59056d029383adc5cd 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 diff --git a/tests/test-remotefilelog-bgprefetch.t b/tests/test-remotefilelog-bgprefetch.t --- a/tests/test-remotefilelog-bgprefetch.t +++ b/tests/test-remotefilelog-bgprefetch.t @@ -6,6 +6,7 @@ $ cat >> $HGRCPATH < [devel] > remotefilelog.ensurestart=True + > remotefilelog.bg-wait=True > EOF $ hg init master diff --git a/tests/test-remotefilelog-repack-fast.t b/tests/test-remotefilelog-repack-fast.t --- a/tests/test-remotefilelog-repack-fast.t +++ b/tests/test-remotefilelog-repack-fast.t @@ -8,6 +8,7 @@ > fastdatapack=True > [devel] > remotefilelog.ensurestart=True + > remotefilelog.bg-wait=True > EOF $ hg init master diff --git a/tests/test-remotefilelog-repack.t b/tests/test-remotefilelog-repack.t --- a/tests/test-remotefilelog-repack.t +++ b/tests/test-remotefilelog-repack.t @@ -6,6 +6,7 @@ $ cat >> $HGRCPATH < [devel] > remotefilelog.ensurestart=True + > remotefilelog.bg-wait=True > EOF $ hg init master