Skip to content

Commit

Permalink
fix attempt: failing test in ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Oct 19, 2023
1 parent 1dd9e70 commit a0859dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/server/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,12 @@ describe('routing-v1-http-api-server', () => {
const peerId = await createEd25519PeerId()
const cid = CID.parse('bafkreifjjcie6lypi6ny7amxnfftagclbuxndqonfipmb64f2km2devei4')
const record = await createIpnsRecord(peerId, cid, 0, 1000)
const marshalledRecord = marshalIpnsRecord(record)

helia.libp2p = {
// @ts-expect-error incomplete implementation
contentRouting: {
get: async function () {
return marshalledRecord
return marshalIpnsRecord(record)
}
}
}
Expand All @@ -278,7 +277,7 @@ describe('routing-v1-http-api-server', () => {

expect(res.status).to.equal(200)
const arrayBuffer = await res.arrayBuffer()
expect(new Uint8Array(arrayBuffer)).to.equalBytes(marshalledRecord)
expect(new Uint8Array(arrayBuffer)).to.equalBytes(marshalIpnsRecord(record))
})

it('PUT ipns puts record', async () => {
Expand Down

0 comments on commit a0859dc

Please sign in to comment.