Skip to content

Commit

Permalink
Some test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Feb 20, 2025
1 parent 85920ac commit 8448374
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 400 deletions.
7 changes: 6 additions & 1 deletion packages/portalnetwork/test/integration/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ describe('gossip test', async () => {
await node1.start()
await node2.start()
const network1 = node1.networks.get(NetworkId.HistoryNetwork) as HistoryNetwork
network1.gossipManager.setPulse(10)
const network2 = node2.networks.get(NetworkId.HistoryNetwork) as HistoryNetwork
await network1?.sendPing(network2?.enr!.toENR())
it('has pinged node in routing table', () => {
Expand Down Expand Up @@ -380,7 +381,11 @@ describe('Offer/Accept', () => {
const res = await network1.sendOffer(node2.discv5.enr.toENR(), contentKeys)
assert.ok(res instanceof BitArray, 'should get a bitarray')
assert.equal((res as BitArray).bitLen, 2, 'should get matching length accepts')
assert.equal((res as BitArray).getTrueBitIndexes().length, 1, 'should only accept one content key')
assert.equal(
(res as BitArray).getTrueBitIndexes().length,
1,
'should only accept one content key',
)

// Set node radius to 254
await network2.setRadius(2n ** 254n - 1n)
Expand Down
122 changes: 0 additions & 122 deletions packages/portalnetwork/test/networks/beacon/portalSpecTests.spec.ts

This file was deleted.

161 changes: 0 additions & 161 deletions packages/portalnetwork/test/networks/beacon/types.spec.ts

This file was deleted.

Loading

0 comments on commit 8448374

Please sign in to comment.