Skip to content
Snippets Groups Projects
Commit c4d1807b authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

test: add some assert in the bookrace extension

This cannot hurt to have a bit more security in the test extension.
parent febf5c82
No related branches found
No related tags found
No related merge requests found
......@@ -121,5 +121,5 @@
> import atexit
> from mercurial import error, extensions, bookmarks
>
> def wait():
> def wait(repo):
> if not os.path.exists('push-A-started'):
......@@ -125,4 +125,6 @@
> if not os.path.exists('push-A-started'):
> assert repo._currentlock(repo._lockref) is None
> assert repo._currentlock(repo._wlockref) is None
> print('setting raced push up')
> with open('push-A-started', 'w'):
> pass
......@@ -134,7 +136,7 @@
> time.sleep(0.1)
>
> def wrapinit(orig, self, repo):
> wait()
> wait(repo)
> return orig(self, repo)
> def uisetup(ui):
> extensions.wrapfunction(bookmarks.bmstore, '__init__', wrapinit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment