Skip to content

Commit

Permalink
fix: update dial test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Dec 13, 2023
1 parent 59bf648 commit 4a698f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/clients/peerbit/src/__tests__/dial.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SeekDelivery } from "@peerbit/stream-interface";
import { Peerbit } from "../index.js";
import { waitFor } from "@peerbit/time";
describe(`dial`, function () {
Expand Down Expand Up @@ -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]));
Expand Down

0 comments on commit 4a698f2

Please sign in to comment.