Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 10c73da

Browse files
wip
1 parent 06afc49 commit 10c73da

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/dial.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function dial (swarm) {
114114
if (err) {
115115
return cb(err)
116116
}
117-
117+
console.log('dial: %s', id.toB58String())
118118
cb(null, secio.create(id, conn))
119119
})
120120
})

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function Swarm (peerInfo) {
104104
if (this.encrypt === false) {
105105
return protocolMuxer(this.protocols, conn)
106106
}
107-
107+
console.log('handle: %s', this._peerInfo.id.toB58String())
108108
const secure = secio.create(this._peerInfo.id, conn)
109109
protocolMuxer(this.protocols, secure)
110110
})

test/06-conn-upgrade-secio.node.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const multiplex = require('libp2p-spdy')
1111

1212
const Swarm = require('../src')
1313

14-
describe.skip('secio conn upgrade (on TCP)', function () {
14+
describe.only('secio conn upgrade (on TCP)', function () {
1515
this.timeout(60 * 1000)
1616

1717
var swarmA
@@ -86,7 +86,7 @@ describe.skip('secio conn upgrade (on TCP)', function () {
8686
})
8787
})
8888

89-
it.skip('dial to warm conn', (done) => {
89+
it('dial to warm conn', (done) => {
9090
swarmB.dial(peerA, (err) => {
9191
expect(err).to.not.exist
9292
expect(Object.keys(swarmB.conns).length).to.equal(0)
@@ -95,7 +95,7 @@ describe.skip('secio conn upgrade (on TCP)', function () {
9595
})
9696
})
9797

98-
it.skip('dial on protocol, reuse warmed conn', (done) => {
98+
it('dial on protocol, reuse warmed conn', (done) => {
9999
swarmA.handle('/papaia/1.0.0', (conn) => {
100100
conn.pipe(conn)
101101
conn.on('error', (err) => { throw err })
@@ -112,7 +112,7 @@ describe.skip('secio conn upgrade (on TCP)', function () {
112112
})
113113
})
114114

115-
it.skip('enable identify to reuse incomming muxed conn', (done) => {
115+
it('enable identify to reuse incomming muxed conn', (done) => {
116116
swarmA.connection.reuse()
117117
swarmC.connection.reuse()
118118

0 commit comments

Comments
 (0)