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

Commit

Permalink
Enable Circuit Relay Tests (#27)
Browse files Browse the repository at this point in the history
* test: enable circuit-relay tests

* fix: config - move relay out of experimental
  • Loading branch information
daviddias authored Aug 13, 2018
1 parent 6593ccd commit 2b0fe5e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
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

0 comments on commit 2b0fe5e

Please sign in to comment.