From 87909afab3a01d3021ce47a675979cf7f8003743 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 25 Nov 2025 12:55:59 -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 b09f13539..73508e09d 100644 --- a/weed/s3api/s3api_object_handlers_copy_test.go +++ b/weed/s3api/s3api_object_handlers_copy_test.go @@ -613,10 +613,7 @@ func TestCopyVersioningIntegration(t *testing.T) { } // Test metadata cleanup using production function - metadata := make(map[string][]byte) - for k, v := range tc.sourceMetadata { - metadata[k] = v - } + metadata := maps.Clone(tc.sourceMetadata) if !shouldCreateVersion { cleanupVersioningMetadata(metadata)