This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 8c5b075
1 parent b11919c commit 8c5b075 Copy full SHA for 8c5b075
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ if (isNode) {
19
19
testfileBig = require ( 'fs' ) . readFileSync ( __dirname + '/100mb.random' )
20
20
} else {
21
21
testfile = require ( 'raw!./testfile.txt' )
22
- testfileBig = require ( 'raw!./100mb.random' )
22
+ // browser goes nuts with a 100mb in memory
23
+ // testfileBig = require('raw!./100mb.random')
23
24
}
24
25
25
26
describe ( 'IPFS Node.js API wrapper tests' , ( ) => {
@@ -126,6 +127,9 @@ describe('IPFS Node.js API wrapper tests', () => {
126
127
} )
127
128
128
129
it ( 'add BIG buffer' , function ( done ) {
130
+ if ( ! isNode ) {
131
+ return done ( )
132
+ }
129
133
this . timeout ( 10000 )
130
134
131
135
let buf = new Buffer ( testfileBig )
@@ -222,6 +226,9 @@ describe('IPFS Node.js API wrapper tests', () => {
222
226
} )
223
227
224
228
it ( 'cat BIG file' , function ( done ) {
229
+ if ( ! isNode ) {
230
+ return done ( )
231
+ }
225
232
this . timeout ( 10000 )
226
233
227
234
apiClients [ 'a' ] . cat ( 'Qmaw8jKK2vdd1gxiYqfyXJgVwfibiXiH3H81eVViJRXMJj' , ( err , res ) => {
You can’t perform that action at this time.
0 commit comments