From 31915da08c699506a4c87019851c0614e762d801 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 25 Nov 2025 13:00:27 -0800 Subject: [PATCH] revert --- weed/s3api/s3api_object_handlers_copy_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/weed/s3api/s3api_object_handlers_copy_test.go b/weed/s3api/s3api_object_handlers_copy_test.go index 73508e09d..018c9f270 100644 --- a/weed/s3api/s3api_object_handlers_copy_test.go +++ b/weed/s3api/s3api_object_handlers_copy_test.go @@ -525,7 +525,10 @@ 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 := maps.Clone(tc.sourceMetadata) + dstMetadata := make(map[string][]byte) + for k, v := range tc.sourceMetadata { + dstMetadata[k] = v + } // Call the actual production function cleanupVersioningMetadata(dstMetadata) @@ -613,7 +616,10 @@ func TestCopyVersioningIntegration(t *testing.T) { } // Test metadata cleanup using production function - metadata := maps.Clone(tc.sourceMetadata) + metadata := make(map[string][]byte) + for k, v := range tc.sourceMetadata { + metadata[k] = v + } if !shouldCreateVersion { cleanupVersioningMetadata(metadata)