From 0d20e7ae9ea7050f59bf526aa718bf4422c00be9 Mon Sep 17 00:00:00 2001 From: Flavian Missi Date: Tue, 30 May 2023 14:52:39 +0200 Subject: [PATCH] registry/storage/driver/testsuites: use 4MB for Azure append test Fixes #3931. Signed-off-by: Flavian Missi --- registry/storage/driver/testsuites/testsuites.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/registry/storage/driver/testsuites/testsuites.go b/registry/storage/driver/testsuites/testsuites.go index 27923aa3b..9847bb387 100644 --- a/registry/storage/driver/testsuites/testsuites.go +++ b/registry/storage/driver/testsuites/testsuites.go @@ -388,7 +388,11 @@ func (suite *DriverSuite) TestReaderWithOffset(c *check.C) { // TestContinueStreamAppendLarge tests that a stream write can be appended to without // corrupting the data with a large chunk size. func (suite *DriverSuite) TestContinueStreamAppendLarge(c *check.C) { - suite.testContinueStreamAppend(c, int64(10*1024*1024)) + chunkSize := int64(10 * 1024 * 1024) + if suite.Name() == "azure" { + chunkSize = int64(4 * 1024 * 1024) + } + suite.testContinueStreamAppend(c, chunkSize) } // TestContinueStreamAppendSmall is the same as TestContinueStreamAppendLarge, but only