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

fix: value when latency unknown #2336

Merged
merged 5 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
"execa": "^2.0.3",
"form-data": "^2.5.0",
"hat": "0.0.3",
"interface-ipfs-core": "~0.107.3",
"interface-ipfs-core": "^0.109.1",
"ipfsd-ctl": "^0.43.0",
"libp2p-websocket-star": "~0.10.2",
"ncp": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = function swarm (self) {
peer: peer.id
}
if (verbose) {
tupple.latency = 'unknown'
tupple.latency = 'n/a'
}

peers.push(tupple)
Expand Down
27 changes: 22 additions & 5 deletions test/core/interface.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ describe('interface-ipfs-core tests', function () {
tests.bootstrap(defaultCommonFactory)

tests.config(defaultCommonFactory, {
skip: [{
name: 'should set a number',
reason: 'Failing - needs to be fixed'
}]
skip: [
{
name: 'should set a number',
reason: 'Failing - needs to be fixed'
},
{
name: 'should output changes but not save them for dry run',
reason: 'TODO unskip when https://github.com/ipfs/js-ipfs/pull/2165 is merged'
},
{
name: 'should set a config profile',
reason: 'TODO unskip when https://github.com/ipfs/js-ipfs/pull/2165 is merged'
}
]
})

tests.dag(defaultCommonFactory)
Expand Down Expand Up @@ -119,7 +129,14 @@ describe('interface-ipfs-core tests', function () {
}
}))

tests.object(defaultCommonFactory)
tests.object(defaultCommonFactory, {
skip: [
{
name: 'should respect timeout option',
reason: 'js-ipfs doesn\'t support timeout yet'
}
]
})

tests.pin(defaultCommonFactory)

Expand Down
27 changes: 22 additions & 5 deletions test/http-api/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ describe('interface-ipfs-core over ipfs-http-client tests', () => {
tests.bootstrap(defaultCommonFactory)

tests.config(defaultCommonFactory, {
skip: [{
name: 'should set a number',
reason: 'Failing - needs to be fixed'
}]
skip: [
{
name: 'should set a number',
reason: 'Failing - needs to be fixed'
},
{
name: 'should output changes but not save them for dry run',
reason: 'TODO unskip when https://github.com/ipfs/js-ipfs/pull/2165 is merged'
},
{
name: 'should set a config profile',
reason: 'TODO unskip when https://github.com/ipfs/js-ipfs/pull/2165 is merged'
}
]
})

tests.dag(defaultCommonFactory, {
Expand Down Expand Up @@ -122,7 +132,14 @@ describe('interface-ipfs-core over ipfs-http-client tests', () => {
}
}))

tests.object(defaultCommonFactory)
tests.object(defaultCommonFactory, {
skip: [
{
name: 'should respect timeout option',
reason: 'js-ipfs doesn\'t support timeout yet'
}
]
})

tests.pin(defaultCommonFactory)

Expand Down