Skip to content

Commit ffeed74

Browse files
author
YangSen-qn
committed
fix test case
1 parent 6201218 commit ffeed74

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/src/androidTest/java/com/qiniu/android/http/HttpTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void setUp() throws Exception {
5151
@Test
5252
public void testPost1() throws Throwable {
5353

54-
httpManager.asyncPost("https://www.baidu.com",
54+
httpManager.asyncPost("https://up.qiniup.com",
5555
"hello".getBytes(), null, UpToken.parse(TestConfig.commonToken), "hello".getBytes().length,
5656
null, new CompletionHandler() {
5757
@Override

library/src/androidTest/java/com/qiniu/android/storage/FormUploadTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public void testUrlConvert() {
206206
}
207207

208208
Configuration configuration = new Configuration.Builder()
209-
.zone(new FixedZone(new String[]{"upnono-na0.qiniu.com", "upnono-na0.qiniu.com"}))
209+
.zone(new FixedZone(new String[]{"upnono-na0.qiniup.com", "upnono-na0.qiniup.com"}))
210210
.urlConverter(new UrlConverter() {
211211
@Override
212212
public String convert(String url) {

library/src/main/java/com/qiniu/android/storage/UpProgress.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ private void notify(final String key, long uploadBytes, final long totalBytes) {
5858
AsyncRun.runInMain(new Runnable() {
5959
@Override
6060
public void run() {
61-
LogUtil.i("key:" + key + " progress uploadBytes:" + totalBytes + " totalBytes:" + totalBytes);
62-
((UpProgressBytesHandler) handler).progress(key, totalBytes, totalBytes);
61+
LogUtil.i("key:" + key + " progress uploadBytes:" + uploadBytes + " totalBytes:" + totalBytes);
62+
((UpProgressBytesHandler) handler).progress(key, uploadBytes, totalBytes);
6363
}
6464
});
6565
return;

0 commit comments

Comments
 (0)