Skip to content

Commit

Permalink
chore: copy interface-ipfs-core tests (#49)
Browse files Browse the repository at this point in the history
* chore: copy over all tests

* fix: interface-test import errors

* fix: fixture loading for interface tests

* fix: iso-random-stream imports

* fix(lint): resolve errors

* chore: update ipfsd-ctl

* chore: tests are running, some failing

* chore: skip not-implemented tests
  • Loading branch information
SgtPooki authored Oct 14, 2022
1 parent ef63c43 commit c899abb
Show file tree
Hide file tree
Showing 193 changed files with 46,807 additions and 214 deletions.
9 changes: 7 additions & 2 deletions .aegir.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,27 @@ export default {
bundlesizeMax: '66KB'
},
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 server = createServer({
host: '127.0.0.1',
port: port
}, {
type: 'go',
ipfsHttpModule: await import('./src/index.js'),
kuboRpcModule: await import('./src/index.js'),
ipfsBin: (await import('go-ipfs')).default.path()
})

await server.start()
return {
server,
env: {
IPFSD_SERVER: `http://${server.host}:${server.port}`
IPFSD_SERVER: `http://${server.host}:${server.port}`,
// PINNING_SERVICE_ENDPOINT: pinningService.endpoint,
PINNING_SERVICE_ENDPOINT: 'http://127.0.0.1:5001'
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"no-return-await": "off",
"no-undef-init": "off",
"no-warning-comments": "off"
}
},
"ignorePatterns": [ "gists/", "vendor/", "test/fixtures/", "test/interface-tests/fixtures/"]
}
Loading

0 comments on commit c899abb

Please sign in to comment.