From: Alex Crichton Date: Sun, 24 Dec 2017 03:45:37 +0000 (-0800) Subject: Write invalid data when cloning to force an abort X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~4^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a1e442e06f3119466d5d0daaca3b16aa00825bb9;p=cargo.git Write invalid data when cloning to force an abort Otherwise it seems libgit2 isn't ready to handle premature eof? Unclear... --- diff --git a/tests/git.rs b/tests/git.rs index 33ffe8c16..ce2836a78 100644 --- a/tests/git.rs +++ b/tests/git.rs @@ -2205,7 +2205,9 @@ fn failed_submodule_checkout() { let t = thread::spawn(move || { while !done2.load(Ordering::SeqCst) { - drop(listener.accept()); + if let Ok((mut socket, _)) = listener.accept() { + drop(socket.write_all(b"foo\r\n")); + } } });