Fix CosImageUploader test to allow random filenames

This commit is contained in:
Tim
2025-07-01 13:16:30 +08:00
parent 4f34d6926e
commit 371fccfa53

View File

@@ -16,6 +16,6 @@ class CosImageUploaderTest {
String url = uploader.upload("data".getBytes(), "img.png").join();
verify(client).putObject(any(PutObjectRequest.class));
assertEquals("http://cos.example.com/img.png", url);
assertTrue(url.matches("http://cos.example.com/[a-f0-9]{32}\\.png"));
}
}