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

Commit

Permalink
test(http-api): create a keychain for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Dec 24, 2017
1 parent 70b03f8 commit 2eeaff1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/http/api/resources/key.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ exports.import = (request, reply) => {
const name = request.query.arg
const pem = request.query.pem
const password = request.query.password
console.log('import psd', password)
console.log('import pem', pem)
ipfs._keychain.importKey(name, pem, password, (err, key) => {
if (err) {
return applyError(reply, err)
Expand Down
1 change: 0 additions & 1 deletion test/core/key-exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ describe('key exchange', () => {
expect(err).to.not.exist()
expect(pem).to.exist()
selfPem = pem
console.log(pem)
done()
})
})
Expand Down
6 changes: 5 additions & 1 deletion test/http-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const chai = require('chai')
const dirtyChai = require('dirty-chai')
const expect = chai.expect
chai.use(dirtyChai)
const hat = require('hat')
const API = require('../../src/http')
const APIctl = require('ipfs-api')
const ncp = require('ncp').ncp
Expand All @@ -21,7 +22,10 @@ describe('HTTP API', () => {
before(function (done) {
this.timeout(60 * 1000)

const options = { enablePubsubExperiment: true }
const options = {
pass: hat(),
enablePubsubExperiment: true
}
http.api = new API(repoTests, null, options)

ncp(repoExample, repoTests, (err) => {
Expand Down

0 comments on commit 2eeaff1

Please sign in to comment.