@@ -113,8 +113,7 @@ module.exports = (common) => {
113
113
expect ( msg ) . to . have . property ( 'seqno' )
114
114
expect ( Buffer . isBuffer ( msg . seqno ) ) . to . be . eql ( true )
115
115
expect ( msg ) . to . have . property ( 'topicCIDs' ) . eql ( [ topic ] )
116
- // TODO: broken https://github.com/ipfs/go-ipfs/issues/3522
117
- // expect(msg).to.have.property('from', ipfs1.peerId.id)
116
+ expect ( msg ) . to . have . property ( 'from' , ipfs1 . peerId . id )
118
117
119
118
ipfs1 . pubsub . unsubscribe ( topic , handler )
120
119
@@ -351,16 +350,14 @@ module.exports = (common) => {
351
350
352
351
const sub1 = ( msg ) => {
353
352
expect ( msg . data . toString ( ) ) . to . be . eql ( expectedString )
354
- // TODO: Reenable when go-ipfs is unbroken
355
- // expect(msg.from).to.be.eql(ipfs2.peerId.id)
353
+ expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
356
354
ipfs1 . pubsub . unsubscribe ( topic , sub1 )
357
355
check ( )
358
356
}
359
357
360
358
const sub2 = ( msg ) => {
361
359
expect ( msg . data . toString ( ) ) . to . be . eql ( expectedString )
362
- // TODO: reenable when go-ipfs is unbroken
363
- // expect(msg.from).to.be.eql(ipfs2.peerId.id)
360
+ expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
364
361
ipfs2 . pubsub . unsubscribe ( topic , sub2 )
365
362
check ( )
366
363
}
@@ -393,15 +390,13 @@ module.exports = (common) => {
393
390
394
391
function sub1 ( msg ) {
395
392
inbox1 . push ( msg . data . toString ( ) )
396
- // TODO: enable when go-ipfs is unbroken
397
- // expect(msg.from).to.be.eql(ipfs2.peerId.id)
393
+ expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
398
394
check ( )
399
395
}
400
396
401
397
function sub2 ( msg ) {
402
398
inbox2 . push ( msg . data . toString ( ) )
403
- // TODO: enable when go-ipfs is unbroken
404
- // expect(msg.from).to.be.eql(ipfs2.peerId.id)
399
+ expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
405
400
check ( )
406
401
}
407
402
0 commit comments