Skip to content

Commit

Permalink
minor fix to test, but now it hangs. 3 hanging to go…
Browse files Browse the repository at this point in the history
…and it's probably all due to the same issue.
  • Loading branch information
Byron committed Sep 28, 2022
1 parent c3150dd commit 164f5d3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions git-transport/tests/client/blocking_io/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Accept: application/x-git-upload-pack-result
}

#[test]
#[cfg_attr(feature = "http-client-reqwest", ignore)]
#[cfg_attr(feature = "http-client-reqwest", ignore)] // hangs
fn handshake_and_lsrefs_and_fetch_v2() -> crate::Result {
let (server, mut c) = mock::serve_and_connect(
"v2/http-handshake.response",
Expand Down Expand Up @@ -367,7 +367,11 @@ fn handshake_and_lsrefs_and_fetch_v2() -> crate::Result {
);

assert_eq!(
server.received_as_string().lines().collect::<Vec<_>>(),
server
.received_as_string()
.lines()
.map(|l| l.to_lowercase())
.collect::<HashSet<_>>(),
format!(
"GET /path/not/important/due/to/mock/info/refs?service=git-upload-pack HTTP/1.1
Host: 127.0.0.1:{}
Expand All @@ -380,7 +384,8 @@ Git-Protocol: version=2:value-only:key=value
env!("CARGO_PKG_VERSION")
)
.lines()
.collect::<Vec<_>>()
.map(|l| l.to_lowercase())
.collect::<HashSet<_>>()
);

server.next_read_and_respond_with(fixture_bytes("v2/http-lsrefs.response"));
Expand Down

0 comments on commit 164f5d3

Please sign in to comment.