diff tests/test-wireproto-serverreactor.py @ 40129:293835e0fff7

wireprotov2: pass ui into clientreactor and serverreactor This will allow us to use config options to influence compression settings. Differential Revision: https://phab.mercurial-scm.org/D4919
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 04 Oct 2018 17:17:57 -0700
parents 327d40b94bed
children 966b5f7fd30b
line wrap: on
line diff
--- a/tests/test-wireproto-serverreactor.py	Thu Oct 04 16:44:21 2018 -0700
+++ b/tests/test-wireproto-serverreactor.py	Thu Oct 04 17:17:57 2018 -0700
@@ -6,6 +6,7 @@
     cbor,
 )
 from mercurial import (
+    ui as uimod,
     util,
     wireprotoframing as framing,
 )
@@ -18,7 +19,8 @@
 OK = cbor.dumps({b'status': b'ok'})
 
 def makereactor(deferoutput=False):
-    return framing.serverreactor(deferoutput=deferoutput)
+    ui = uimod.ui()
+    return framing.serverreactor(ui, deferoutput=deferoutput)
 
 def sendframes(reactor, gen):
     """Send a generator of frame bytearray to a reactor.