Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit f3a8224

Browse files
author
Pedro Santos
committed
refactor: name resolve test
1 parent a0c1e6a commit f3a8224

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/name/resolve.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,20 +132,11 @@ module.exports = (createCommon, options) => {
132132
let ipfs
133133
this.retries(5)
134134

135-
before(function (done) {
136-
common.setup((err, factory) => {
137-
expect(err).to.not.exist()
138-
139-
factory.spawnNode((err, node) => {
140-
expect(err).to.not.exist()
141-
142-
ipfs = node
143-
done()
144-
})
145-
})
135+
before(async () => {
136+
ipfs = await common.setup()
146137
})
147138

148-
after((done) => common.teardown(done))
139+
after(() => common.teardown())
149140

150141
it('should resolve /ipns/ipfs.io', async () => {
151142
return expect(await ipfs.name.resolve('/ipns/ipfs.io'))

0 commit comments

Comments
 (0)