Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Enable Circuit Relay Tests #27

Merged
merged 2 commits into from
Aug 13, 2018
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 @@ -51,7 +51,7 @@
"form-data": "^2.3.2",
"go-ipfs-dep": "~0.4.17",
"hat": "0.0.3",
"ipfs": "~0.30.1",
"ipfs": "~0.31.1",
"ipfs-api": "^22.2.4",
"ipfsd-ctl": "~0.39.0",
"left-pad": "^1.3.0",
Expand Down
10 changes: 7 additions & 3 deletions test/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const baseTest = {
timeout
}

// TODO: unskip once go-ipfs 0.4.16 is out
describe.skip('circuit', () => {
describe('circuit', () => {
const tests = all

if (!isNode) {
Object.assign(tests, browser)
}
Expand All @@ -37,7 +37,11 @@ describe.skip('circuit', () => {
let nodeB

tests[test] = Object.assign({}, baseTest, tests[test])
const dsc = tests[test].skip && tests[test].skip() ? describe.skip : describe

const dsc = tests[test].skip && tests[test].skip()
? describe.skip
: describe

dsc(test, function () {
this.timeout(tests[test].timeout)

Expand Down
23 changes: 9 additions & 14 deletions test/utils/circuit.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ const baseConf = {
},
Discovery: {
MDNS: {
Enabled:
false
Enabled: false
}
}
}
Expand All @@ -38,12 +37,10 @@ exports.createProcNode = (addrs, callback) => {
Addresses: {
Swarm: addrs
},
EXPERIMENTAL: {
relay: {
enabled: true,
hop: {
enabled: true
}
relay: {
enabled: true,
hop: {
enabled: true
}
}
})
Expand All @@ -62,12 +59,10 @@ exports.createJsNode = (addrs, callback) => {
Addresses: {
Swarm: addrs
},
EXPERIMENTAL: {
relay: {
enabled: true,
hop: {
enabled: true
}
relay: {
enabled: true,
hop: {
enabled: true
}
}
})
Expand Down