diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-04-04 21:14:17 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2017-04-04 21:37:48 +0900 |
commit | 61a943e03d86b4ede1cf9a8184f00a7bb76143c1 (patch) | |
tree | f20959d17012435a1ad3d54e24c478eda066f165 | |
parent | 61e336475db27cb11cc370a9947bf6529e34daa0 (diff) | |
download | jgit-61a943e03d86b4ede1cf9a8184f00a7bb76143c1.tar.gz jgit-61a943e03d86b4ede1cf9a8184f00a7bb76143c1.zip |
PushConnectionTest#limitCommandBytes: Increase maxCommandBytes
A higher limit is required to account for proper JGit version number
being sent in the UserAgent.
The version string "4.7.0.201704031717-r" is 20 characters, however
the strings used during development are shorter:
- When running from mvn, "4.7.0.qualifier" is used; 15 characters
- When running in Eclipse, "unknown" is used; 7 characters
Change-Id: I9aca2f71389a42fedce305e9078db016869c3d1a
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java index 4aebc1d32c..908a1bab26 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java @@ -184,7 +184,7 @@ public class PushConnectionTest { updates.put(rru.getRemoteName(), rru); } - server.getConfig().setInt("receive", null, "maxCommandBytes", 170); + server.getConfig().setInt("receive", null, "maxCommandBytes", 180); try (Transport tn = testProtocol.open(uri, client, "server"); PushConnection connection = tn.openPush()) { try { |