diff --git a/modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageBlobContainerStatsTests.java b/modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageBlobContainerStatsTests.java index c028c89ff8a65..0aab7a8a6ad1e 100644 --- a/modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageBlobContainerStatsTests.java +++ b/modules/repository-gcs/src/test/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageBlobContainerStatsTests.java @@ -106,6 +106,8 @@ public void testResumableWrite() throws Exception { final String blobName = randomIdentifier(); final int size = randomIntBetween((int) store.getLargeBlobThresholdInBytes(), (int) store.getLargeBlobThresholdInBytes() * 2); final BytesArray blobContents = new BytesArray(randomByteArrayOfLength(size)); + + // resumable write in GCS sends at least two HTTP requests one POST with metadata and at least one PUT with payload container.writeBlob(randomPurpose(), blobName, blobContents, true); assertEquals(createStats(1, 0, 0), store.stats());