From a0859dc02db3c88e0f779006d55e899123bde461 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 19 Oct 2023 14:00:22 +0200 Subject: [PATCH] fix attempt: failing test in ubuntu --- packages/server/test/index.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/server/test/index.spec.ts b/packages/server/test/index.spec.ts index 6f5bfd5..dbb8903 100644 --- a/packages/server/test/index.spec.ts +++ b/packages/server/test/index.spec.ts @@ -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) } } } @@ -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 () => {