Update xray client to forward args (#4709)

This commit is contained in:
Jackson Haenchen 2021-12-21 15:15:31 -06:00 committed by GitHub
parent ce9fb90663
commit 0bc45963da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,10 +46,10 @@ class MockXrayClient:
if not f:
return self
def wrapped_f():
def wrapped_f(*args, **kwargs):
self.start()
try:
f()
f(*args, **kwargs)
finally:
self.stop()