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>
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 4aebc1d..908a1ba 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 void limitCommandBytes() throws IOException { 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 {