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

Commit eaffbcf

Browse files
jacobheunAlan Shaw
authored andcommitted
fix: enable browser-browser-go circuit test (#64)
* fix: ipns publish offline show use allow-offline
1 parent f42567e commit eaffbcf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/circuit/browser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ module.exports = {
130130
(cb) => setTimeout(cb, 5000),
131131
(cb) => nodeA.ipfsd.api.swarm.connect(getCircuitAddr(nodeB.addrs), cb)
132132
], callback)
133-
},
134-
skip: () => true
133+
}
135134
},
136135
'browser-browser-js': {
137136
create: (callback) => series([

test/ipns.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ const publishAndResolve = (publisherDaemon, resolverDaemon, callback) => {
5353

5454
series([
5555
(cb) => publisherDaemon.init(cb),
56-
(cb) => publisherDaemon.start(cb),
56+
(cb) => publisherDaemon.start(['--offline'], cb),
5757
(cb) => publisherDaemon.api.id((err, res) => {
5858
expect(err).to.not.exist()
5959
nodeId = res.id
6060
cb()
6161
}),
62-
(cb) => publisherDaemon.api.name.publish(ipfsRef, { resolve: false }, cb),
62+
(cb) => publisherDaemon.api.name.publish(ipfsRef, { resolve: false, 'allow-offline': true }, cb),
6363
(cb) => sameDaemon ? cb() : stopPublisherAndStartResolverDaemon(cb),
6464
(cb) => {
6565
resolverDaemon.api.name.resolve(nodeId, { local: true }, (err, res) => {

0 commit comments

Comments
 (0)