From c5c18aa0a9d3cf4c5008c7dc0478a899b96776ae Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 25 Nov 2025 12:55:50 -0800 Subject: [PATCH] Update weed/s3api/s3api_object_handlers_copy_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- weed/s3api/s3api_object_handlers_copy_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/weed/s3api/s3api_object_handlers_copy_test.go b/weed/s3api/s3api_object_handlers_copy_test.go index 018c9f270..b09f13539 100644 --- a/weed/s3api/s3api_object_handlers_copy_test.go +++ b/weed/s3api/s3api_object_handlers_copy_test.go @@ -525,10 +525,7 @@ func TestCleanupVersioningMetadata(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { // Create a copy of the source metadata - dstMetadata := make(map[string][]byte) - for k, v := range tc.sourceMetadata { - dstMetadata[k] = v - } + dstMetadata := maps.Clone(tc.sourceMetadata) // Call the actual production function cleanupVersioningMetadata(dstMetadata)