Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update all deps, fix compilation and tests #63

Merged
merged 10 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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