Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit e2a5bf4

Browse files
committed
Change test case setting.
1 parent 53b6218 commit e2a5bf4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/test-0.5.1.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,14 @@ RNTest.config({
212212
</Info>)
213213
})
214214
.then((res) => {
215+
try {
215216
deb = Date.now()
216217
let promise = RNFetchBlob.fetch('POST', 'https://content.dropboxapi.com/2/files/upload', {
217218
Authorization : `Bearer ${DROPBOX_TOKEN}`,
218219
'Dropbox-API-Arg': '{\"path\": \"/rn-upload/'+filename+'\",\"mode\": \"add\",\"autorename\": true,\"mute\": false}',
219220
'Content-Type' : 'application/octet-stream',
220221
}, RNFetchBlob.wrap(res.path()))
221-
if(Platform.OS === 'ios')
222+
if(Platform.OS === 'ios') {
222223
promise.progress((now, total) => {
223224
if(Date.now() - deb < 1000)
224225
return
@@ -233,7 +234,9 @@ RNTest.config({
233234
</Text>
234235
</Info>)
235236
})
237+
}
236238
return promise
239+
} catch(err) { console.log(err) }
237240
})
238241
.then((res) => {
239242
report(<Assert

test/test-0.6.3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('massive HTTP request', (report, done) => {
3535
for(let i=0; i<1500;i++) {
3636
let p = RNFetchBlob
3737
.config({fileCache : true})
38-
.fetch('GET', `${TEST_SERVER_URL}/public/github2.png`)
38+
.fetch('GET', `${TEST_SERVER_URL}/public/github2.jpg`)
3939
// .progress(function(current, total){
4040
// progress[this] = current/total
4141
// }.bind(i))

0 commit comments

Comments
 (0)