Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit e9166fd

Browse files
committed
test: enable bitswap tests on windows
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent ca56587 commit e9166fd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

test/core/bitswap.spec.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ const IPFSFactory = require('ipfsd-ctl')
2020

2121
const IPFS = require('../../src/core')
2222

23-
// TODO bitswap tests on windows is failing, missing proper shutdown of daemon
24-
// https://github.com/ipfs/js-ipfsd-ctl/pull/205
25-
const isWindows = require('../utils/platforms').isWindows
26-
const skipOnWindows = isWindows() ? describe.skip : describe
27-
2823
function makeBlock (callback) {
2924
const d = Buffer.from(`IPFS is awesome ${Math.random()}`)
3025

@@ -89,7 +84,7 @@ function addNode (fDaemon, inProcNode, callback) {
8984
})
9085
}
9186

92-
skipOnWindows('bitswap', function () {
87+
describe('bitswap', function () {
9388
this.timeout(80 * 1000)
9489

9590
let inProcNode // Node spawned inside this process

test/core/interface.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const isNode = require('detect-node')
88
describe('interface-ipfs-core tests', () => {
99
const defaultCommonFactory = CommonFactory.create()
1010

11-
tests.bitswap(defaultCommonFactory)
11+
tests.bitswap(defaultCommonFactory, { skip: !isNode })
1212

1313
tests.block(defaultCommonFactory)
1414

0 commit comments

Comments
 (0)