From 61a943e03d86b4ede1cf9a8184f00a7bb76143c1 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 4 Apr 2017 21:14:17 +0900 Subject: [PATCH] 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 --- .../tst/org/eclipse/jgit/transport/PushConnectionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4aebc1d32..908a1bab2 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 {