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,7 +31,7 @@ false && describe('upload BASE64 v.s. Storage', (report, done) => {
31 31
 
32 32
   RNFetchBlob
33 33
     .config({ path : storageFile })
34
-    .fetch('get', target)
34
+    .fetch('GET', target)
35 35
     .then((res) => res.readFile('base64'))
36 36
     .then((data) => {
37 37
       b64data = data
@@ -170,8 +170,8 @@ false && describe('write file BASE64 v.s. URI', (report, done) => {
170 170
 
171 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 175
   let source = dirs.DocumentDir + '/benchmark3-source'
176 176
   let res = {}
177 177
   RNFetchBlob.fetch('GET', target)