Skip to content

Commit 4a150d7

Browse files
committed
test: basic test against github
1 parent c24aa44 commit 4a150d7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}

gix-transport/tests/client/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[cfg(feature = "russh")]
2+
mod async_io;
13
#[cfg(feature = "blocking-client")]
24
mod blocking_io;
35
mod capabilities;

0 commit comments

Comments
 (0)