Skip to content
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

Browse files
committedNov 21, 2015
browser screams with large files
1 parent b11919c commit 8c5b075

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎test/tests.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ if (isNode) {
1919
testfileBig = require('fs').readFileSync(__dirname + '/100mb.random')
2020
} else {
2121
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')
2324
}
2425

2526
describe('IPFS Node.js API wrapper tests', () => {
@@ -126,6 +127,9 @@ describe('IPFS Node.js API wrapper tests', () => {
126127
})
127128

128129
it('add BIG buffer', function (done) {
130+
if (!isNode) {
131+
return done()
132+
}
129133
this.timeout(10000)
130134

131135
let buf = new Buffer(testfileBig)
@@ -222,6 +226,9 @@ describe('IPFS Node.js API wrapper tests', () => {
222226
})
223227

224228
it('cat BIG file', function (done) {
229+
if (!isNode) {
230+
return done()
231+
}
225232
this.timeout(10000)
226233

227234
apiClients['a'].cat('Qmaw8jKK2vdd1gxiYqfyXJgVwfibiXiH3H81eVViJRXMJj', (err, res) => {

0 commit comments

Comments
 (0)
This repository has been archived.