# HG changeset patch # User Boris Feld # Date 1507757639 -7200 # Node ID 6338e23c887dad126de8a7934b8e8bec41a00f3c # Parent d957d4475a644a3623b6d23f50156c4c164cc938 configitems: register the test config in 'test-push-race.t' diff -r d957d4475a64 -r 6338e23c887d tests/test-push-race.t --- a/tests/test-push-race.t Wed Oct 11 04:33:00 2017 +0200 +++ b/tests/test-push-race.t Wed Oct 11 23:33:59 2017 +0200 @@ -22,18 +22,29 @@ > from mercurial import ( > exchange, > extensions, + > registrar, + > ) + > + > configtable = {} + > configitem = registrar.configitem(configtable) + > + > configitem('delaypush', 'ready-path', + > default=None, + > ) + > configitem('delaypush', 'release-path', + > default=None, > ) > > def delaypush(orig, pushop): > # notify we are done preparing > ui = pushop.repo.ui - > readypath = ui.config('delaypush', 'ready-path', None) + > readypath = ui.config('delaypush', 'ready-path') > if readypath is not None: > with open(readypath, 'w') as r: > r.write('foo') > ui.status('wrote ready: %s\n' % readypath) > # now wait for the other process to be done - > watchpath = ui.config('delaypush', 'release-path', None) + > watchpath = ui.config('delaypush', 'release-path') > if watchpath is not None: > ui.status('waiting on: %s\n' % watchpath) > limit = 100