Reducing the size of the "large" proto in ProtoUtilsTest.

Hoping to eliminate flakes on Travis.

Fixes #859
This commit is contained in:
nmittler 2015-08-24 07:42:51 -07:00
parent e2f88fa904
commit 0b57f56bf0
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ public class ProtoUtilsTest {
@Test
public void marshallerShouldNotLimitProtoSize() throws Exception {
byte[] bigName = new byte[100 * 1024 * 1024];
// The default limit is 64MB. Using a larger proto to verify that the limit is not enforced.
byte[] bigName = new byte[70 * 1024 * 1024];
new Random().nextBytes(bigName);
proto = Type.newBuilder().setNameBytes(ByteString.copyFrom(bigName)).build();