mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 05:50:53 +08:00
Fix CosImageUploader test to allow random filenames
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user