From 787d2ed495e3b6da9423f93add319633e24e3659 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Thu, 11 Jan 2018 10:35:33 +0000 Subject: [PATCH] fixes dns test with callback --- src/miscellaneous.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/miscellaneous.js b/src/miscellaneous.js index 4e3eaec42..7a7d60c90 100644 --- a/src/miscellaneous.js +++ b/src/miscellaneous.js @@ -50,10 +50,11 @@ module.exports = (common) => { }) }) - it('.dns', () => { - return ipfs.dns('ipfs.io', (err, path) => { + it('.dns', (done) => { + ipfs.dns('ipfs.io', (err, path) => { expect(err).to.not.exist() expect(path).to.exist() + done() }) })