Browse Source

Change test case

Ben Hsieh 8 years ago
parent
commit
30586b946d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      test/benchmark.js

+ 3
- 3
test/benchmark.js View File

31
 
31
 
32
   RNFetchBlob
32
   RNFetchBlob
33
     .config({ path : storageFile })
33
     .config({ path : storageFile })
34
-    .fetch('get', target)
34
+    .fetch('GET', target)
35
     .then((res) => res.readFile('base64'))
35
     .then((res) => res.readFile('base64'))
36
     .then((data) => {
36
     .then((data) => {
37
       b64data = data
37
       b64data = data
170
 
170
 
171
 describe('read file benchmark', (report, done) => {
171
 describe('read file benchmark', (report, done) => {
172
 
172
 
173
-  let iteration = 200
174
-  let target = `${TEST_SERVER_URL}/public/6mb-dummy`
173
+  let iteration = 50
174
+  let target = `${TEST_SERVER_URL}/public/1mb-dummy`
175
   let source = dirs.DocumentDir + '/benchmark3-source'
175
   let source = dirs.DocumentDir + '/benchmark3-source'
176
   let res = {}
176
   let res = {}
177
   RNFetchBlob.fetch('GET', target)
177
   RNFetchBlob.fetch('GET', target)