From ba69bd8a8ee32c435ff863dfeb0f9fd1242fafa0 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 28 Jun 2018 13:52:58 +0100 Subject: [PATCH] chore: add bitswap skips for offline errors License: MIT Signed-off-by: Alan Shaw --- test/interface.spec.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/test/interface.spec.js b/test/interface.spec.js index aefb8b2ad..27dad8e71 100644 --- a/test/interface.spec.js +++ b/test/interface.spec.js @@ -12,11 +12,25 @@ describe('interface-ipfs-core tests', () => { tests.bitswap(defaultCommonFactory, { skip: [ + // bitswap.stat + isWindows ? { + name: 'should not get bitswap stats when offline', + reason: 'FIXME go-ipfs returns an error https://github.com/ipfs/go-ipfs/issues/4078' + } : null, + // bitswap.wantlist + isWindows ? { + name: 'should not get the wantlist when offline', + reason: 'FIXME go-ipfs returns an error https://github.com/ipfs/go-ipfs/issues/4078' + } : null, // bitswap.unwant { name: 'should remove a key from the wantlist', reason: 'FIXME why is this skipped?' - } + }, + isWindows ? { + name: 'should not remove a key from the wantlist when offline', + reason: 'FIXME go-ipfs returns an error https://github.com/ipfs/go-ipfs/issues/4078' + } : null ] })