mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-25 23:11:35 +00:00
feat: enable and test Circuit Relay
* feat: new super simplified API * feat: append peer id to multiaddr if not there * [WIP] Awesome DHT (#86) * feat: integrate dht * better interfaces * docs: add documentation for peerRouting, contentRouting, dht * fix: take in passed datastore * fix: update usage of _getPeerInfo * fix: getPeerInfo * docs: update docs * moar feat: correctly handle p2p-circuit addrs when creating a peer info object refactor: rework config options * feat: adding circuit relaying * feat: rework circuit relay for protobufs * feat: circuit loading and tests * fix: clean up _getPeerInfo to work with /p2p-circuit * wip: tests cleaup * test: clean up * wip * fix: bringing back test reworks and new aegir * test: group tests * test: clean up * test: adjust test * fix: use getPeerId to determine if the ipfs fragment is missing * feat: adding circuit relaying * feat: circuit loading and tests * test: clean up * wip * feat: upgrade to latest aegir * fix: removing unused tests * feat: cleanup tests * fix: create node defautl options * chore: upgrade swarm to latest version * fix: updated aegir and adjust timeouts * feat: more timeouts * chore: updating deps * fix: circle ci builds * test: timeouts
This commit is contained in:
committed by
David Dias
parent
2504cbeb26
commit
29cc0afc64
@ -16,11 +16,11 @@ function test (nodeA, nodeB, callback) {
|
||||
expect(err).to.not.exist()
|
||||
|
||||
pull(
|
||||
pull.values([new Buffer('hey')]),
|
||||
pull.values([Buffer.from('hey')]),
|
||||
conn,
|
||||
pull.collect((err, data) => {
|
||||
expect(err).to.not.exist()
|
||||
expect(data).to.be.eql([new Buffer('hey')])
|
||||
expect(data).to.be.eql([Buffer.from('hey')])
|
||||
callback()
|
||||
})
|
||||
)
|
||||
@ -34,8 +34,10 @@ function teardown (nodeA, nodeB, callback) {
|
||||
], callback)
|
||||
}
|
||||
|
||||
describe('stream muxing', (done) => {
|
||||
it('spdy only', (done) => {
|
||||
describe('stream muxing', () => {
|
||||
it('spdy only', function (done) {
|
||||
this.timeout(5000)
|
||||
|
||||
let nodeA
|
||||
let nodeB
|
||||
|
||||
@ -99,7 +101,9 @@ describe('stream muxing', (done) => {
|
||||
], done)
|
||||
})
|
||||
|
||||
it('spdy + multiplex', (done) => {
|
||||
it('spdy + multiplex', function (done) {
|
||||
this.timeout(5000)
|
||||
|
||||
let nodeA
|
||||
let nodeB
|
||||
|
||||
@ -131,7 +135,9 @@ describe('stream muxing', (done) => {
|
||||
], done)
|
||||
})
|
||||
|
||||
it('spdy + multiplex switched order', (done) => {
|
||||
it('spdy + multiplex switched order', function (done) {
|
||||
this.timeout(5000)
|
||||
|
||||
let nodeA
|
||||
let nodeB
|
||||
|
||||
@ -163,7 +169,9 @@ describe('stream muxing', (done) => {
|
||||
], done)
|
||||
})
|
||||
|
||||
it('one without the other fails to establish a muxedConn', (done) => {
|
||||
it('one without the other fails to establish a muxedConn', function (done) {
|
||||
this.timeout(5000)
|
||||
|
||||
let nodeA
|
||||
let nodeB
|
||||
|
||||
|
Reference in New Issue
Block a user