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>
This commit is contained in:
Andrey Loskutov 2018-08-19 18:08:50 +02:00
parent b31f966188
commit 6e4b9bd274
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ public void testSuccess() throws Exception {
try (TransportLocal t = newTransportLocalWithStrictValidation()) {
t.setPushThin(true);
r = t.push(PM, Collections.singleton(u));
dst.close();
}
assertNotNull("have result", r);