Skip to content

Commit e08f310

Browse files
committed
Auto merge of #4859 - alexcrichton:better-test-fail, r=alexcrichton
Write invalid data when cloning to force an abort Otherwise it seems libgit2 isn't ready to handle premature eof? Unclear...
2 parents 0e74b2a + a1e442e commit e08f310

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/git.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,9 @@ fn failed_submodule_checkout() {
22052205

22062206
let t = thread::spawn(move || {
22072207
while !done2.load(Ordering::SeqCst) {
2208-
drop(listener.accept());
2208+
if let Ok((mut socket, _)) = listener.accept() {
2209+
drop(socket.write_all(b"foo\r\n"));
2210+
}
22092211
}
22102212
});
22112213

0 commit comments

Comments
 (0)