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

Commit 2b0fe5e

Browse files
authored
Enable Circuit Relay Tests (#27)
* test: enable circuit-relay tests * fix: config - move relay out of experimental
1 parent 6593ccd commit 2b0fe5e

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"form-data": "^2.3.2",
5252
"go-ipfs-dep": "~0.4.17",
5353
"hat": "0.0.3",
54-
"ipfs": "~0.30.1",
54+
"ipfs": "~0.31.1",
5555
"ipfs-api": "^22.2.4",
5656
"ipfsd-ctl": "~0.39.0",
5757
"left-pad": "^1.3.0",

test/circuit.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ const baseTest = {
2323
timeout
2424
}
2525

26-
// TODO: unskip once go-ipfs 0.4.16 is out
27-
describe.skip('circuit', () => {
26+
describe('circuit', () => {
2827
const tests = all
28+
2929
if (!isNode) {
3030
Object.assign(tests, browser)
3131
}
@@ -37,7 +37,11 @@ describe.skip('circuit', () => {
3737
let nodeB
3838

3939
tests[test] = Object.assign({}, baseTest, tests[test])
40-
const dsc = tests[test].skip && tests[test].skip() ? describe.skip : describe
40+
41+
const dsc = tests[test].skip && tests[test].skip()
42+
? describe.skip
43+
: describe
44+
4145
dsc(test, function () {
4246
this.timeout(tests[test].timeout)
4347

test/utils/circuit.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ const baseConf = {
2525
},
2626
Discovery: {
2727
MDNS: {
28-
Enabled:
29-
false
28+
Enabled: false
3029
}
3130
}
3231
}
@@ -38,12 +37,10 @@ exports.createProcNode = (addrs, callback) => {
3837
Addresses: {
3938
Swarm: addrs
4039
},
41-
EXPERIMENTAL: {
42-
relay: {
43-
enabled: true,
44-
hop: {
45-
enabled: true
46-
}
40+
relay: {
41+
enabled: true,
42+
hop: {
43+
enabled: true
4744
}
4845
}
4946
})
@@ -62,12 +59,10 @@ exports.createJsNode = (addrs, callback) => {
6259
Addresses: {
6360
Swarm: addrs
6461
},
65-
EXPERIMENTAL: {
66-
relay: {
67-
enabled: true,
68-
hop: {
69-
enabled: true
70-
}
62+
relay: {
63+
enabled: true,
64+
hop: {
65+
enabled: true
7166
}
7267
}
7368
})

0 commit comments

Comments
 (0)