File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
gix-transport/tests/client Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ use gix_transport:: Service ;
2+
3+ #[ cfg( feature = "russh" ) ]
4+ #[ tokio:: test]
5+ async fn test_native_ssh_handshake ( ) -> std:: result:: Result < ( ) , Box < dyn std:: error:: Error + Send + Sync > > {
6+ let mut client = gix_transport:: connect (
7+ gix_url:: Url :: try_from ( "ssh://git@github.com/GitoxideLabs/gitoxide.git" ) . expect ( "url is valid" ) ,
8+ gix_transport:: connect:: Options {
9+ version : gix_transport:: Protocol :: V2 ,
10+ trace : true ,
11+ } ,
12+ )
13+ . await ?;
14+
15+ client. handshake ( Service :: UploadPack , & [ ] ) . await ?;
16+ Ok ( ( ) )
17+ }
Original file line number Diff line number Diff line change 1+ #[ cfg( feature = "russh" ) ]
2+ mod async_io;
13#[ cfg( feature = "blocking-client" ) ]
24mod blocking_io;
35mod capabilities;
You can’t perform that action at this time.
0 commit comments