From cebe9b944aa013fc41f1a86abea819af81cc78eb Mon Sep 17 00:00:00 2001 From: Yiru Tang Date: Fri, 10 Nov 2023 23:51:41 +0000 Subject: [PATCH] . --- .../com/google/cloud/bigquery/storage/v1/StreamWriterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/StreamWriterTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/StreamWriterTest.java index ee18e9e68d..ba55653f46 100644 --- a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/StreamWriterTest.java +++ b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/StreamWriterTest.java @@ -1091,7 +1091,8 @@ public void run() throws Throwable { public void testMessageTooLarge() throws Exception { StreamWriter writer = getTestStreamWriter(); - String oversized = Strings.repeat("a", (int) (StreamWriter.getApiMaxRequestBytes() + 1)); + // There is an oppotunity to allow 20MB requests. + String oversized = Strings.repeat("a", (int) (StreamWriter.getApiMaxRequestBytes() * 2 + 1)); ApiFuture appendFuture1 = sendTestMessage(writer, new String[] {oversized}); assertTrue(appendFuture1.isDone()); StatusRuntimeException actualError =