|
|
@ -144,11 +144,9 @@ public class MeasurePackSizeTest extends HttpTestCase { |
|
|
|
final RevCommit Q = src.commit().add("Q", Q_txt).create(); |
|
|
|
final RevCommit Q = src.commit().add("Q", Q_txt).create(); |
|
|
|
final Repository db = src.getRepository(); |
|
|
|
final Repository db = src.getRepository(); |
|
|
|
final String dstName = Constants.R_HEADS + "new.branch"; |
|
|
|
final String dstName = Constants.R_HEADS + "new.branch"; |
|
|
|
Transport t; |
|
|
|
|
|
|
|
PushResult result; |
|
|
|
PushResult result; |
|
|
|
|
|
|
|
|
|
|
|
t = Transport.open(db, remoteURI); |
|
|
|
try (Transport t = Transport.open(db, remoteURI)) { |
|
|
|
try { |
|
|
|
|
|
|
|
final String srcExpr = Q.name(); |
|
|
|
final String srcExpr = Q.name(); |
|
|
|
final boolean forceUpdate = false; |
|
|
|
final boolean forceUpdate = false; |
|
|
|
final String localName = null; |
|
|
|
final String localName = null; |
|
|
@ -158,8 +156,6 @@ public class MeasurePackSizeTest extends HttpTestCase { |
|
|
|
srcExpr, dstName, forceUpdate, localName, oldId); |
|
|
|
srcExpr, dstName, forceUpdate, localName, oldId); |
|
|
|
result = t.push(NullProgressMonitor.INSTANCE, |
|
|
|
result = t.push(NullProgressMonitor.INSTANCE, |
|
|
|
Collections.singleton(update)); |
|
|
|
Collections.singleton(update)); |
|
|
|
} finally { |
|
|
|
|
|
|
|
t.close(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
assertEquals("expected 1 RemoteUpdate", 1, result.getRemoteUpdates() |
|
|
|
assertEquals("expected 1 RemoteUpdate", 1, result.getRemoteUpdates() |
|
|
|
.size()); |
|
|
|
.size()); |
|
|
|