comparison tests/test-remotefilelog-bgprefetch.t @ 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 5fadf6103790
children fac25de8cbec
comparison
equal deleted inserted replaced
43849:63bb6dc62f24 43850:88ab1295db4c
4 # devel.remotefilelog.ensurestart: reduce race condition with 4 # devel.remotefilelog.ensurestart: reduce race condition with
5 # waiton{repack/prefetch} 5 # waiton{repack/prefetch}
6 $ cat >> $HGRCPATH <<EOF 6 $ cat >> $HGRCPATH <<EOF
7 > [devel] 7 > [devel]
8 > remotefilelog.ensurestart=True 8 > remotefilelog.ensurestart=True
9 > remotefilelog.bg-wait=True
9 > EOF 10 > EOF
10 11
11 $ hg init master 12 $ hg init master
12 $ cd master 13 $ cd master
13 $ cat >> .hg/hgrc <<EOF 14 $ cat >> .hg/hgrc <<EOF