summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2019-10-09 14:10:14 -0700
committerIvan Frade <ifrade@google.com>2019-10-11 14:13:17 -0700
commit892c804699512dffc850cef0727e614ee3a0a6d6 (patch)
tree92a4bab02ab70fb3fd75eefa01674dc6ec6de7f4 /org.eclipse.jgit.test/tst/org/eclipse
parent6bd9bc23b7201485cabc309aa3c5f8cf8a9f6f78 (diff)
downloadjgit-892c804699512dffc850cef0727e614ee3a0a6d6.tar.gz
jgit-892c804699512dffc850cef0727e614ee3a0a6d6.zip
CachedPackUriProvider: Add size to the pack information
The object identifying packfiles to send them via packfile-uri contains only the uri and the hash. This is the information that goes through the wire. It would be useful to know also the size of those packfile, for example to track how many bytes have been offloaded to HTTP. Add size field the CachedPackUriProvider.PackInfo object. Change-Id: If6b921b48a4764d936141c777879b148cc80bbd3 Signed-off-by: Ivan Frade <ifrade@google.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
index 5d9f32d40b..2f370d8c52 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
@@ -2077,7 +2077,7 @@ public class UploadPackTest {
assertThat(protocolsSupported, hasItems("https"));
if (!protocolsSupported.contains("https"))
return null;
- return new PackInfo("myhash", "myuri");
+ return new PackInfo("myhash", "myuri", 100);
}
});