From 4a698f2274422da349a8947073d8663fc45dedbb Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Wed, 13 Dec 2023 20:51:55 +0100 Subject: [PATCH] fix: update dial test --- packages/clients/peerbit/src/__tests__/dial.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/clients/peerbit/src/__tests__/dial.test.ts b/packages/clients/peerbit/src/__tests__/dial.test.ts index da1a3629a..8ddb5f904 100644 --- a/packages/clients/peerbit/src/__tests__/dial.test.ts +++ b/packages/clients/peerbit/src/__tests__/dial.test.ts @@ -1,3 +1,4 @@ +import { SeekDelivery } from "@peerbit/stream-interface"; import { Peerbit } from "../index.js"; import { waitFor } from "@peerbit/time"; describe(`dial`, function () { @@ -28,7 +29,8 @@ describe(`dial`, function () { }); await clients[0].dial(clients[1].getMultiaddrs()[0]); await clients[0].services.pubsub.publish(new Uint8Array([1]), { - topics: [topic] + topics: [topic], + mode: new SeekDelivery({ redundancy: 1 }) }); await waitFor(() => !!data); expect(data && new Uint8Array(data)).toEqual(new Uint8Array([1]));