This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 4 files changed +7
-6
lines changed
4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ module.exports = (createCommon, options) => {
87
87
} , done )
88
88
} )
89
89
90
- it ( 'should not put dag-cbor node with wrong multicodec' , function ( done ) {
90
+ it ( 'should not put dag-cbor node with wrong multicodec' , ( done ) => {
91
91
ipfs . dag . put ( cborNode , {
92
92
format : 'dag-pb' ,
93
93
hashAlg : 'sha3-512'
Original file line number Diff line number Diff line change 1
1
/* eslint-env mocha */
2
2
'use strict'
3
3
4
- const { series, eachSeries } = require ( 'async' )
4
+ const series = require ( 'async/series' )
5
+ const eachSeries = require ( 'async/eachSeries' )
5
6
const dagPB = require ( 'ipld-dag-pb' )
6
7
const dagCBOR = require ( 'ipld-dag-cbor' )
7
8
const { spawnNodeWithId } = require ( '../utils/spawn' )
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ module.exports = (createCommon, options) => {
45
45
} )
46
46
} )
47
47
48
- it ( 'should fail to find other peer if peer does not exist' , function ( done ) {
48
+ it ( 'should fail to find other peer if peer does not exist' , ( done ) => {
49
49
nodeA . dht . findpeer ( 'Qmd7qZS4T7xXtsNFdRoK1trfMs5zU94EpokQ9WFtxdPxsZ' , ( err , peer ) => {
50
50
expect ( err ) . to . not . exist ( )
51
- expect ( peer ) . to . be . equal ( null )
51
+ expect ( peer ) . to . not . exist ( )
52
52
done ( )
53
53
} )
54
54
} )
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ module.exports = (createCommon, options) => {
12
12
const common = createCommon ( )
13
13
14
14
describe ( '.dht.findprovs' , function ( ) {
15
- this . timeout ( 80 * 1000 )
16
-
17
15
let nodeA
18
16
let nodeB
19
17
@@ -39,6 +37,8 @@ module.exports = (createCommon, options) => {
39
37
after ( ( done ) => common . teardown ( done ) )
40
38
41
39
it ( 'should provide from one node and find it through another node' , function ( done ) {
40
+ this . timeout ( 80 * 1000 )
41
+
42
42
waterfall ( [
43
43
( cb ) => nodeB . object . new ( 'unixfs-dir' , cb ) ,
44
44
( dagNode , cb ) => {
You can’t perform that action at this time.
0 commit comments