diff options
author | Andrey Loskutov <loskutov@gmx.de> | 2018-08-19 18:08:50 +0200 |
---|---|---|
committer | Andrey Loskutov <loskutov@gmx.de> | 2018-08-19 20:24:20 +0200 |
commit | 6e4b9bd274fc50476eecdea1a0babe4972d2a623 (patch) | |
tree | cb3abb63fefbaf1dc46f9f51c4e5d3b90b003081 /org.eclipse.jgit.test/tst | |
parent | b31f966188697d2d07ac0e888d4b3c2a5defabb9 (diff) | |
download | jgit-6e4b9bd274fc50476eecdea1a0babe4972d2a623.tar.gz jgit-6e4b9bd274fc50476eecdea1a0babe4972d2a623.zip |
ReceivePackAdvertiseRefsHookTest.testSuccess() fails on Windows
The TransportLocal object created in
newTransportLocalWithStrictValidation() closes original repository and
increments use of test internal "dst" repository, but never decrements
use. Because of this, pack file is not closed and during tearDown on
Windows system is unable to delete it.
Bug: 538068
Change-Id: I96df8e91abfee78c91cf26c2466718e9145a69db
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java index b77042220f..9cc6cfd393 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java @@ -259,6 +259,7 @@ public class ReceivePackAdvertiseRefsHookTest extends LocalDiskRepositoryTestCas try (TransportLocal t = newTransportLocalWithStrictValidation()) { t.setPushThin(true); r = t.push(PM, Collections.singleton(u)); + dst.close(); } assertNotNull("have result", r); |