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

Commit

Permalink
test: enable some of the core interface DHT tests (#1634)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw authored Nov 2, 2018
1 parent ad8b08d commit 99fb64e
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions test/core/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,45 @@ describe('interface-ipfs-core tests', () => {

tests.dag(defaultCommonFactory)

tests.dht(defaultCommonFactory, {
skip: { reason: 'TODO: DHT is not implemented in js-ipfs yet!' }
const dhtCommonFactory = CommonFactory.create({
spawnOptions: {
initOptions: { bits: 512 },
EXPERIMENTAL: {
dht: true
}
}
})

tests.dht(dhtCommonFactory, {
skip: isNode ? [
// dht.provide
{
name: 'should provide local CID',
reason: 'FIXME: Circuit not enabled and all transports failed to dial peer'
},
{
name: 'should allow multiple CIDs to be passed',
reason: 'FIXME: Circuit not enabled and all transports failed to dial peer'
},
{
name: 'should provide a CIDv1',
reason: 'FIXME: Circuit not enabled and all transports failed to dial peer'
},
// dht.get
{
name: 'should get a value after it was put on another node',
reason: 'FIXME: callback is not a function'
},
// dht.findprovs
{
name: 'should provide from one node and find it through another node',
reason: 'FIXME: Timeout of 80000ms exceeded'
},
{
name: 'should return the other node in the query',
reason: 'FIXME: always auto-skiped from within test'
}
] : true
})

tests.files(defaultCommonFactory)
Expand Down

0 comments on commit 99fb64e

Please sign in to comment.