This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ module.exports = (common) => {
153
153
} )
154
154
155
155
describe ( '.query' , ( ) => {
156
- it ( 'returns the other node in the query' , ( done ) => {
156
+ it ( 'returns the other node in the query' , function ( done ) {
157
+ this . timeout ( 800 * 1000 )
157
158
nodeA . dht . query ( nodeC . peerId . id , ( err , peers ) => {
158
159
expect ( err ) . to . not . exist ( )
159
160
expect ( peers . map ( ( p ) => p . ID ) ) . to . include ( nodeC . peerId . id )
Original file line number Diff line number Diff line change @@ -676,7 +676,8 @@ module.exports = (common) => {
676
676
} )
677
677
} )
678
678
679
- describe ( '.patch' , ( ) => {
679
+ describe ( '.patch' , function ( ) {
680
+ this . timeout ( 800 * 1000 )
680
681
let testNodeMultihash
681
682
let testNodeWithLinkMultihash
682
683
let testLink
@@ -719,7 +720,10 @@ module.exports = (common) => {
719
720
( cb ) => {
720
721
// note: we need to put the linked obj, otherwise IPFS won't
721
722
// timeout. Reason: it needs the node to get its size
722
- ipfs . object . put ( node2 , cb )
723
+ ipfs . object . put ( node2 , ( err , node ) => {
724
+ expect ( err ) . to . not . exist ( )
725
+ cb ( )
726
+ } )
723
727
} ,
724
728
( cb ) => {
725
729
const link = node2 . toJSON ( )
You can’t perform that action at this time.
0 commit comments