Skip to content

Commit d923b3e

Browse files
committed
fix ut
1 parent 898824c commit d923b3e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/test/java/com/aliyun/oss/common/utils/VersionUtilTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class VersionUtilTest {
2828
@Test
2929
public void testGetDefaultUserAgent() {
3030
String userAgent = VersionInfoUtils.getDefaultUserAgent();
31-
assertTrue(userAgent.startsWith("aliyun-sdk-java/3.1.0("));
31+
assertTrue(userAgent.startsWith("aliyun-sdk-java/3.3.0("));
3232
assertEquals(userAgent.split("/").length, 4);
3333
assertEquals(userAgent.split(";").length, 2);
3434
assertEquals(userAgent.split("\\(").length, 2);

src/test/java/com/aliyun/oss/integrationtests/BucketAclTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ public void testUnormalDoesBucketExist() {
173173
ossClient.doesBucketExist(nonexistentBucket);
174174
Assert.fail("Does bucket exist should not be successful");
175175
} catch (Exception e) {
176-
Assert.assertEquals("UnknownHost", e.getMessage());
176+
Assert.assertEquals("unormal-does-bucket-exist.oss-cn-taikang.aliyuncs.com\n" +
177+
"[ErrorCode]: UnknownHost\n" +
178+
"[RequestId]: Unknown", e.getMessage());
177179
}
178180
}
179181

0 commit comments

Comments
 (0)