mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-06-25 00:21:40 +00:00
feat: add support for timeline proxying (#31)
This commit is contained in:
@ -10,7 +10,12 @@ const pair = require('it-pair')
|
||||
|
||||
describe('compliance tests', () => {
|
||||
tests({
|
||||
async setup () {
|
||||
/**
|
||||
* Test setup. `properties` allows the compliance test to override
|
||||
* certain values for testing.
|
||||
* @param {*} properties
|
||||
*/
|
||||
async setup (properties) {
|
||||
const localAddr = multiaddr('/ip4/127.0.0.1/tcp/8080')
|
||||
const remoteAddr = multiaddr('/ip4/127.0.0.1/tcp/8081')
|
||||
const [localPeer, remotePeer] = await Promise.all([
|
||||
@ -49,7 +54,8 @@ describe('compliance tests', () => {
|
||||
}
|
||||
},
|
||||
close: () => {},
|
||||
getStreams: () => openStreams
|
||||
getStreams: () => openStreams,
|
||||
...properties
|
||||
})
|
||||
},
|
||||
async teardown () {
|
||||
|
Reference in New Issue
Block a user