Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 682a2da

Browse files
committed
fix: make the test work
1 parent 95c218c commit 682a2da

File tree

1 file changed

+4
-2
lines changed
  • packages/interface-ipfs-core/src/utils

1 file changed

+4
-2
lines changed

packages/interface-ipfs-core/src/utils/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const fromString = require('uint8arrays/from-string')
44
const loadFixture = require('aegir/fixtures')
55

6-
const ONE_MEG = Math.pow(2, 20)
6+
// const ONE_MEG = Math.pow(2, 20)
77

88
exports.fixtures = Object.freeze({
99
directory: Object.freeze({
@@ -23,7 +23,9 @@ exports.fixtures = Object.freeze({
2323
}),
2424
bigFile: Object.freeze({
2525
cid: 'QmcKEs7mbxbGPPc2zo77E6CPwgaSbY4SmD2MFh16AqaR9e',
26-
data: Uint8Array.from(new Array(ONE_MEG * 15).fill(0))
26+
data: loadFixture('test/fixtures/test-folder/holmes.txt', 'interface-ipfs-core')
27+
// TODO check https://github.com/ipfs/js-ipfs/issues/3542
28+
// data: Uint8Array.from(new Array(ONE_MEG * 15).fill(0))
2729
}),
2830
emptyFile: Object.freeze({
2931
cid: 'QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH',

0 commit comments

Comments
 (0)