mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-07-07 22:41:40 +00:00
Compare commits
1 Commits
v0.4.1
...
skip-abort
Author | SHA1 | Date | |
---|---|---|---|
82ed140b42 |
@ -1,8 +1,3 @@
|
||||
<a name="0.4.1"></a>
|
||||
## [0.4.1](https://github.com/libp2p/js-interfaces/compare/v0.4.0...v0.4.1) (2020-08-11)
|
||||
|
||||
|
||||
|
||||
<a name="0.4.0"></a>
|
||||
# [0.4.0](https://github.com/libp2p/js-interfaces/compare/v0.3.2...v0.4.0) (2020-08-10)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "libp2p-interfaces",
|
||||
"version": "0.4.1",
|
||||
"version": "0.4.0",
|
||||
"description": "Interfaces for JS Libp2p",
|
||||
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
||||
"main": "src/index.js",
|
||||
@ -46,7 +46,7 @@
|
||||
"it-goodbye": "^2.0.1",
|
||||
"it-pair": "^1.0.0",
|
||||
"it-pipe": "^1.1.0",
|
||||
"libp2p-tcp": "^0.15.0",
|
||||
"libp2p-tcp": "^0.14.5",
|
||||
"multiaddr": "^8.0.0",
|
||||
"p-defer": "^3.0.0",
|
||||
"p-limit": "^2.3.0",
|
||||
|
@ -31,7 +31,8 @@ module.exports = (common) => {
|
||||
}
|
||||
}
|
||||
|
||||
describe('dial', () => {
|
||||
describe('dial', function () {
|
||||
this.timeout(20 * 1000)
|
||||
let addrs
|
||||
let transport
|
||||
let connector
|
||||
@ -129,7 +130,7 @@ module.exports = (common) => {
|
||||
expect.fail('Did not throw error with code ' + AbortError.code)
|
||||
})
|
||||
|
||||
it('abort while reading throws AbortError', async () => {
|
||||
it.skip('abort while reading throws AbortError', async () => {
|
||||
// Add a delay to the response from the server
|
||||
async function * delayedResponse (source) {
|
||||
for await (const val of source) {
|
||||
|
@ -31,7 +31,8 @@ module.exports = (common) => {
|
||||
}
|
||||
}
|
||||
|
||||
describe('listen', () => {
|
||||
describe('listen', function () {
|
||||
this.timeout(20 * 1000)
|
||||
let addrs
|
||||
let transport
|
||||
|
||||
@ -51,7 +52,7 @@ module.exports = (common) => {
|
||||
await listener.close()
|
||||
})
|
||||
|
||||
it('close listener with connections, through timeout', async () => {
|
||||
it.skip('close listener with connections, through timeout', async () => {
|
||||
const upgradeSpy = sinon.spy(upgrader, 'upgradeInbound')
|
||||
const listenerConns = []
|
||||
|
||||
@ -94,7 +95,7 @@ module.exports = (common) => {
|
||||
expect(upgradeSpy.callCount).to.equal(2)
|
||||
})
|
||||
|
||||
it('should not handle connection if upgradeInbound throws', async () => {
|
||||
it.skip('should not handle connection if upgradeInbound throws', async () => {
|
||||
sinon.stub(upgrader, 'upgradeInbound').throws()
|
||||
|
||||
const listener = transport.createListener(() => {
|
||||
|
Reference in New Issue
Block a user