Skip to content

Commit

Permalink
fix: update all deps, fix compilation and tests (#63)
Browse files Browse the repository at this point in the history
* fix: update all deps, fix compilation and tests

* Updates all deps
* Updates imported code
* Fixes test skips (need `function` keywork to call `this.skip`)

* chore: fix linting

* fix: add missing deps

* chore: update paths

* chore: temporarily disable interface-tests

* chore: fix port conflict

* chore: update port

* chore: ipfs.add does not emit logs any more

* chore: make stop instance method

* chore: linting

Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
  • Loading branch information
achingbrain and SgtPooki committed Nov 2, 2022
1 parent 7e12ee2 commit e83705c
Show file tree
Hide file tree
Showing 32 changed files with 5,901 additions and 2,217 deletions.
21 changes: 14 additions & 7 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createServer } from 'ipfsd-ctl'
import getPort from 'aegir/get-port'
import EchoServer from 'aegir/echo-server'

/** @type {import('aegir').PartialOptions} */
export default {
Expand All @@ -9,30 +10,36 @@ export default {
test: {
bail: false,
async before (options) {
// const { PinningService } = await import('aegir/test/utils/mock-pinning-service.js')
// const pinningService = await PinningService.start()
const port = await getPort()
const { PinningService } = await import('./test/utils/mock-pinning-service.js')
const pinningService = await PinningService.start()
const server = createServer({
host: '127.0.0.1',
port: port
port: 0
}, {
type: 'go',
kuboRpcModule: await import('./src/index.js'),
ipfsBin: (await import('go-ipfs')).default.path()
})

const echoServer = new EchoServer()
await echoServer.start()

await server.start()
return {
server,
echoServer,
pinningService,
env: {
IPFSD_SERVER: `http://${server.host}:${server.port}`,
// PINNING_SERVICE_ENDPOINT: pinningService.endpoint,
PINNING_SERVICE_ENDPOINT: 'http://127.0.0.1:5001'
IPFSD_SERVER: `http://${server.host}:${server.server.info.port}`,
PINNING_SERVICE_ENDPOINT: pinningService.endpoint,
ECHO_SERVER: `http://${echoServer.host}:${echoServer.port}`,
}
}
},
async after (options, before) {
await before.echoServer.stop()
await before.server.stop()
await before.pinningService.stop()
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules
dist
out
docs
.coverage
Loading

0 comments on commit e83705c

Please sign in to comment.