mirror of https://github.com/grpc/grpc-java.git
Reducing the size of the "large" proto in ProtoUtilsTest.
Hoping to eliminate flakes on Travis. Fixes #859
This commit is contained in:
parent
e2f88fa904
commit
0b57f56bf0
|
|
@ -77,7 +77,8 @@ public class ProtoUtilsTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void marshallerShouldNotLimitProtoSize() throws Exception {
|
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);
|
new Random().nextBytes(bigName);
|
||||||
|
|
||||||
proto = Type.newBuilder().setNameBytes(ByteString.copyFrom(bigName)).build();
|
proto = Type.newBuilder().setNameBytes(ByteString.copyFrom(bigName)).build();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue