From 2e9418465c863b129300ea5f0c8b32590edc7729 Mon Sep 17 00:00:00 2001 From: David Dias Date: Fri, 22 Jun 2018 08:55:33 +0100 Subject: [PATCH] test: enable pin tests (#1405) * test: use pin tests * test: fix evil typo * chore: increase timeout for pinSet after License: MIT Signed-off-by: Alan Shaw --- test/core/node.js | 5 +++++ test/core/pin-set.js | 4 ++-- test/node.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 test/core/node.js diff --git a/test/core/node.js b/test/core/node.js new file mode 100644 index 0000000000..dbe473c458 --- /dev/null +++ b/test/core/node.js @@ -0,0 +1,5 @@ +'use strict' + +require('./pin') +require('./pin-set') +// require('./key-exchange') diff --git a/test/core/pin-set.js b/test/core/pin-set.js index 243c81d25c..78f30b9c65 100644 --- a/test/core/pin-set.js +++ b/test/core/pin-set.js @@ -11,7 +11,7 @@ const parallelLimit = require('async/parallelLimit') const series = require('async/series') const { fromB58String } = require('multihashes') const { DAGNode } = require('ipld-dag-pb') -const CID = require('CIDs') +const CID = require('cids') const IPFS = require('../../src/core') const createPinSet = require('../../src/core/components/pin-set') @@ -63,7 +63,7 @@ describe('pinSet', function () { }) after(function (done) { - this.timeout(10 * 1000) + this.timeout(20 * 1000) ipfs.stop(done) }) diff --git a/test/node.js b/test/node.js index 155ed7c1c4..840700960b 100644 --- a/test/node.js +++ b/test/node.js @@ -3,4 +3,4 @@ require('./cli') require('./http-api') require('./gateway') -// require('./core') // get automatically picked up +require('./core/node.js')