Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 4acfd70

Browse files
authored
test: enable skipped xor test (#458)
This test should be enabled
1 parent cb2cf3c commit 4acfd70

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/query.spec.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ describe('QueryManager', () => {
669669
await manager.stop()
670670
})
671671

672-
it.skip('should end paths when they have no closer peers to those already queried', async () => {
672+
it('should end paths when they have no closer peers to those already queried', async () => {
673673
const manager = new QueryManager({
674674
peerId: ourPeerId
675675
}, {
@@ -694,20 +694,20 @@ describe('QueryManager', () => {
694694

695695
// should have traversed peers 3, 2 & 1
696696
expect(results).to.containSubset([{
697-
peer: peers[3]
697+
from: peers[3]
698698
}, {
699-
peer: peers[2]
699+
from: peers[2]
700700
}, {
701-
peer: peers[1]
701+
from: peers[1]
702702
}])
703703

704704
// should not have traversed peers 4, 5 & 6
705705
expect(results).to.not.containSubset([{
706-
peer: peers[4]
706+
from: peers[4]
707707
}, {
708-
peer: peers[5]
708+
from: peers[5]
709709
}, {
710-
peer: peers[6]
710+
from: peers[6]
711711
}])
712712

713713
await manager.stop()

0 commit comments

Comments
 (0)