Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit dec9d50

Browse files
committed
fix(pubsub): adds skips for tests on windows
License: MIT Signed-off-by: Alan Shaw <alan@tableflip.io>
1 parent 2f6d041 commit dec9d50

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/interface.spec.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const tests = require('interface-ipfs-core')
55
const isNode = require('detect-node')
66
const CommonFactory = require('./utils/interface-common-factory')
77
const IPFSApi = require('../src')
8+
const isWindows = process.platform && process.platform === 'win32'
89

910
describe('interface-ipfs-core tests', () => {
1011
const defaultCommonFactory = CommonFactory.create()
@@ -119,7 +120,15 @@ describe('interface-ipfs-core tests', () => {
119120
args: ['--enable-pubsub-experiment'],
120121
initOptions: { bits: 1024 }
121122
}
122-
}))
123+
}), {
124+
skip: isNode ? [
125+
// pubsub.subscribe
126+
// FIXME https://github.com/ipfs/interface-ipfs-core/pull/188#issuecomment-354673246
127+
// and https://github.com/ipfs/go-ipfs/issues/4778
128+
isWindows ? 'should send/receive 100 messages' : null,
129+
isWindows ? 'should receive multiple messages' : null
130+
] : true
131+
})
123132

124133
tests.repo(defaultCommonFactory)
125134

0 commit comments

Comments
 (0)