mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-08 03:37:28 +08:00
Merge pull request #25 from nagisa77/codex/fix-test-failure-due-to-incorrect-url
Fix CosImageUploader test
This commit is contained in:
@@ -16,6 +16,6 @@ class CosImageUploaderTest {
|
|||||||
String url = uploader.upload("data".getBytes(), "img.png").join();
|
String url = uploader.upload("data".getBytes(), "img.png").join();
|
||||||
|
|
||||||
verify(client).putObject(any(PutObjectRequest.class));
|
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