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

Commit b30fc99

Browse files
committed
this should be all
1 parent 52fcc05 commit b30fc99

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/core/components/start.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ module.exports = (self) => {
2828

2929
series([
3030
(cb) => {
31-
if (self._repo.closed) {
32-
self._repo.open(cb)
33-
} else {
34-
cb()
35-
}
31+
console.log('repo is:', self._repo.closed)
32+
33+
self._repo.closed
34+
? self._repo.open(cb)
35+
: cb()
3636
},
3737
(cb) => self.preStart(cb),
3838
(cb) => self.libp2p.start(cb)

test/cli/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('config', () => runOnAndOff((thing) => {
1919
before(() => {
2020
ipfs = thing.ipfs
2121
configPath = path.join(ipfs.repoPath, 'config')
22-
originalConfigPath = path.join(__dirname, '../test-data/go-ipfs-repo/config')
22+
originalConfigPath = path.join(__dirname, '../go-ipfs-repo/config')
2323
updatedConfig = () => JSON.parse(fs.readFileSync(configPath, 'utf8'))
2424
restoreConfig = () => fs.writeFileSync(configPath, fs.readFileSync(originalConfigPath, 'utf8'), 'utf8')
2525
})

test/http-api/over-ipfs-api/object.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ module.exports = (ctl) => {
191191
const key = 'QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n'
192192
const filePath = 'test/test-data/badnode.json'
193193
const expectedResult = {
194-
data: fs.readFileSync(filePath).toString(),
194+
data: fs.readFileSync(filePath),
195195
multihash: 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6',
196196
links: [],
197197
size: 19
@@ -226,7 +226,7 @@ module.exports = (ctl) => {
226226
const key = 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6'
227227
const filePath = 'test/test-data/badnode.json'
228228
const expectedResult = {
229-
data: fs.readFileSync(filePath).toString(),
229+
data: fs.readFileSync(filePath),
230230
multihash: 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6',
231231
links: [],
232232
size: 19

0 commit comments

Comments
 (0)