From: Andrey Loskutov Date: Sun, 19 Aug 2018 18:32:00 +0000 (+0200) Subject: FilterCommandsTest fails on Windows X-Git-Tag: v5.1.0.201808281540-m3~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c23d024ea8fc4a8330a134138d45e61d60403a97;p=jgit.git FilterCommandsTest fails on Windows Bug: 538068 Change-Id: I3ba6fceef2c34cacc0c37150206379aa93b5e3d0 Signed-off-by: Andrey Loskutov --- diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java index 0d31811257..8dfdd0fc7c 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FilterCommandsTest.java @@ -85,6 +85,8 @@ public class FilterCommandsTest extends RepositoryTestCase { public int run() throws IOException { int b = in.read(); if (b == -1) { + in.close(); + out.close(); return b; } out.write(prefix);