mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-17 11:11:21 +00:00
add multistream and muxer tests
This commit is contained in:
@ -20,9 +20,9 @@ b.on('error', function (err) {
|
||||
b.listen()
|
||||
|
||||
b.registerHandler('/ipfs/sparkles/1.2.3', function (stream) {
|
||||
// if (err) {
|
||||
// return console.log(err)
|
||||
// }
|
||||
// if (err) {
|
||||
// return console.log(err)
|
||||
// }
|
||||
|
||||
console.log('woop got a stream')
|
||||
})
|
||||
|
@ -76,7 +76,6 @@ experiment('BASE', function () {
|
||||
*/
|
||||
experiment('IDENTIFY', function () {
|
||||
test('Attach Identify, open a stream, see a peer update', function (done) {
|
||||
|
||||
swarmA.on('error', function (err) {
|
||||
console.log('A - ', err)
|
||||
})
|
||||
@ -103,8 +102,8 @@ experiment('IDENTIFY', function () {
|
||||
identifyA.on('peer-update', function (answer) {})
|
||||
}, 500)
|
||||
})
|
||||
/*
|
||||
test('Attach Identify, open a stream, reuse stream', function (done) {
|
||||
/*
|
||||
test('Attach Identify, open a stream, reuse stream', function (done) {
|
||||
var protocol = '/sparkles/3.3.3'
|
||||
|
||||
var identifyA = new Identify(swarmA, peerA)
|
||||
@ -126,8 +125,8 @@ experiment('IDENTIFY', function () {
|
||||
})
|
||||
})
|
||||
identifyA.on('peer-update', function (answer) {})
|
||||
})
|
||||
*/
|
||||
})
|
||||
*/
|
||||
})
|
||||
|
||||
experiment('HARDNESS', function () {})
|
||||
|
Reference in New Issue
Block a user