Browse Source

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>
stable-4.7
David Pursehouse 8 years ago
parent
commit
61a943e03d
  1. 2
      org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java

2
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushConnectionTest.java

@ -184,7 +184,7 @@ public class PushConnectionTest {
updates.put(rru.getRemoteName(), rru); 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"); try (Transport tn = testProtocol.open(uri, client, "server");
PushConnection connection = tn.openPush()) { PushConnection connection = tn.openPush()) {
try { try {

Loading…
Cancel
Save