File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/test/java/com/aliyun/oss Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments