From 8eb66de04dc50d6bfa8d23d22b330ce274e7ad4d Mon Sep 17 00:00:00 2001 From: Ahmed Moustafa <35640105+aemous@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:42:05 -0500 Subject: [PATCH] Fix non-deterministic S3 test failure. (#9068) --- tests/functional/s3/test_cp_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/s3/test_cp_command.py b/tests/functional/s3/test_cp_command.py index d64f9a5f2df1..683a426aad1c 100644 --- a/tests/functional/s3/test_cp_command.py +++ b/tests/functional/s3/test_cp_command.py @@ -791,9 +791,9 @@ def test_multipart_upload_with_checksum_algorithm_crc32(self): self.assertEqual(self.operations_called[1][0].name, 'UploadPart') self.assertEqual(self.operations_called[1][1]['ChecksumAlgorithm'], 'CRC32') self.assertEqual(self.operations_called[3][0].name, 'CompleteMultipartUpload') - self.assertIn({'ETag': 'foo-e1', 'ChecksumCRC32': 'foo-1', 'PartNumber': 1}, + self.assertIn({'ETag': 'foo-e1', 'ChecksumCRC32': 'foo-1', 'PartNumber': mock.ANY}, self.operations_called[3][1]['MultipartUpload']['Parts']) - self.assertIn({'ETag': 'foo-e2', 'ChecksumCRC32': 'foo-2', 'PartNumber': 2}, + self.assertIn({'ETag': 'foo-e2', 'ChecksumCRC32': 'foo-2', 'PartNumber': mock.ANY}, self.operations_called[3][1]['MultipartUpload']['Parts']) def test_copy_with_checksum_algorithm_crc32(self):