diff tests/test-check-interfaces.py @ 35978:59e4a7781a36

sshpeer: implement peer for version 2 of wire protocol Since the protocol is now negotiated before we construct a peer instance, we can return the negotiated protocol from the handshake function and instantiate an appropriate peer class for the protocol. Version 2 of the SSH protocol is currently identical to version 1 post handshake. So our sshv2peer class just inherits from sshv1peer for the time being. This will obviously change over time. Differential Revision: https://phab.mercurial-scm.org/D2063
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 06 Feb 2018 11:31:25 -0800
parents 625038cb4b1d
children 11ba1a96f946
line wrap: on
line diff
--- a/tests/test-check-interfaces.py	Tue Feb 06 10:57:56 2018 -0800
+++ b/tests/test-check-interfaces.py	Tue Feb 06 11:31:25 2018 -0800
@@ -67,6 +67,8 @@
     checkobject(localrepo.localpeer(dummyrepo()))
     checkobject(sshpeer.sshv1peer(ui, 'ssh://localhost/foo', None, None, None,
                                   None, None))
+    checkobject(sshpeer.sshv2peer(ui, 'ssh://localhost/foo', None, None, None,
+                                  None, None))
     checkobject(bundlerepo.bundlepeer(dummyrepo()))
     checkobject(statichttprepo.statichttppeer(dummyrepo()))
     checkobject(unionrepo.unionpeer(dummyrepo()))