mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-06-24 06:41:38 +00:00
test: do not run IPv6 tests on CI (#86)
* test: do not run IPv6 tests on CI * Updating CI files (#83) This commit updates all CI scripts to the latest version * chore: use env variable instead * skip the other IPv6 tests
This commit is contained in:
@ -10,6 +10,7 @@ const TCP = require('../src')
|
||||
const net = require('net')
|
||||
const multiaddr = require('multiaddr')
|
||||
const Connection = require('interface-connection').Connection
|
||||
const isCI = process.env.CI
|
||||
|
||||
describe('instantiate the transport', () => {
|
||||
it('create', () => {
|
||||
@ -54,6 +55,7 @@ describe('listen', () => {
|
||||
})
|
||||
|
||||
it('listen on IPv6 addr', (done) => {
|
||||
if (isCI) { return done() }
|
||||
const mh = multiaddr('/ip6/::/tcp/9090')
|
||||
const listener = tcp.createListener((conn) => {})
|
||||
listener.listen(mh, () => {
|
||||
@ -179,6 +181,8 @@ describe('dial', () => {
|
||||
})
|
||||
|
||||
it('dial on IPv6', (done) => {
|
||||
if (isCI) { return done() }
|
||||
|
||||
const ma = multiaddr('/ip6/::/tcp/9066')
|
||||
const listener = tcp.createListener((conn) => {
|
||||
pull(conn, conn)
|
||||
@ -198,8 +202,8 @@ describe('dial', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// TODO: figure out why is this failing
|
||||
it.skip('dial and destroy on listener', (done) => {
|
||||
// TODO: why is this failing
|
||||
let count = 0
|
||||
const closed = ++count === 2 ? finish() : null
|
||||
|
||||
@ -223,6 +227,8 @@ describe('dial', () => {
|
||||
})
|
||||
|
||||
it('dial and destroy on dialer', (done) => {
|
||||
if (isCI) { return done() }
|
||||
|
||||
let count = 0
|
||||
const destroyed = () => ++count === 2 ? finish() : null
|
||||
|
||||
|
Reference in New Issue
Block a user