@@ -80,7 +80,7 @@ describe('stream muxing with spdy (on TCP)', () => {
80
80
} )
81
81
82
82
it ( 'handle + dial on protocol' , ( done ) => {
83
- swarmB . handle ( '/abacaxi/1.0.0' , ( conn ) => {
83
+ swarmB . handle ( '/abacaxi/1.0.0' , ( protocol , conn ) => {
84
84
pull ( conn , conn )
85
85
} )
86
86
@@ -101,7 +101,7 @@ describe('stream muxing with spdy (on TCP)', () => {
101
101
} )
102
102
103
103
it ( 'dial on protocol, reuse warmed conn' , ( done ) => {
104
- swarmA . handle ( '/papaia/1.0.0' , ( conn ) => {
104
+ swarmA . handle ( '/papaia/1.0.0' , ( protocol , conn ) => {
105
105
pull ( conn , conn )
106
106
} )
107
107
@@ -128,7 +128,7 @@ describe('stream muxing with spdy (on TCP)', () => {
128
128
} )
129
129
130
130
it ( 'with Identify, do getPeerInfo' , ( done ) => {
131
- swarmA . handle ( '/banana/1.0.0' , ( conn ) => {
131
+ swarmA . handle ( '/banana/1.0.0' , ( protocol , conn ) => {
132
132
conn . getPeerInfo ( ( err , peerInfoC ) => {
133
133
expect ( err ) . to . not . exist
134
134
expect ( peerInfoC . id . toB58String ( ) ) . to . equal ( peerC . id . toB58String ( ) )
@@ -160,8 +160,11 @@ describe('stream muxing with spdy (on TCP)', () => {
160
160
let count = 0
161
161
const destroyed = ( ) => ++ count === 2 ? done ( ) : null
162
162
163
- swarmD . handle ( '/banana/1.0.0' , ( conn ) => {
164
- pull ( conn , pull . onEnd ( destroyed ) )
163
+ swarmD . handle ( '/banana/1.0.0' , ( protocol , conn ) => {
164
+ pull (
165
+ conn ,
166
+ pull . onEnd ( destroyed )
167
+ )
165
168
} )
166
169
167
170
swarmA . dial ( peerD , '/banana/1.0.0' , ( err , conn ) => {
@@ -210,8 +213,11 @@ describe('stream muxing with spdy (on TCP)', () => {
210
213
let count = 0
211
214
const destroyed = ( ) => ++ count === 2 ? close ( ) : null
212
215
213
- swarmE . handle ( '/avocado/1.0.0' , ( conn ) => {
214
- pull ( conn , pull . onEnd ( destroyed ) )
216
+ swarmE . handle ( '/avocado/1.0.0' , ( protocol , conn ) => {
217
+ pull (
218
+ conn ,
219
+ pull . onEnd ( destroyed )
220
+ )
215
221
} )
216
222
217
223
swarmF . dial ( peerE , '/avocado/1.0.0' , ( err , conn ) => {
0 commit comments