tests: update lockdelay.py to handle the `wait` argument
Spotted by a future change.
--- a/tests/lockdelay.py Thu Sep 03 14:14:04 2020 +0530
+++ b/tests/lockdelay.py Thu Sep 10 16:51:40 2020 +0530
@@ -10,11 +10,11 @@
def reposetup(ui, repo):
class delayedlockrepo(repo.__class__):
- def lock(self):
+ def lock(self, wait=True):
delay = float(os.environ.get('HGPRELOCKDELAY', '0.0'))
if delay:
time.sleep(delay)
- res = super(delayedlockrepo, self).lock()
+ res = super(delayedlockrepo, self).lock(wait=wait)
delay = float(os.environ.get('HGPOSTLOCKDELAY', '0.0'))
if delay:
time.sleep(delay)