Skip to content

Commit e1e23d0

Browse files
test(document): wait for program readiness
1 parent 6f674c1 commit e1e23d0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

packages/programs/data/document/document/test/domain.spec.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ describe("domain", () => {
9595

9696
const peerConnectivityTimeoutMs = 20_000;
9797
await Promise.all([
98-
store.docs.node.services.pubsub.waitFor(
99-
store2.docs.node.identity.publicKey.hashcode(),
100-
{ target: "neighbor", timeout: peerConnectivityTimeoutMs },
101-
),
102-
store2.docs.node.services.pubsub.waitFor(
103-
store.docs.node.identity.publicKey.hashcode(),
104-
{ target: "neighbor", timeout: peerConnectivityTimeoutMs },
105-
),
98+
store.docs.waitFor(store2.docs.node.identity.publicKey, {
99+
timeout: peerConnectivityTimeoutMs,
100+
}),
101+
store2.docs.waitFor(store.docs.node.identity.publicKey, {
102+
timeout: peerConnectivityTimeoutMs,
103+
}),
106104
]);
107105

108106
await store.docs.put(new Document({ id: "1", property: 1 }));

0 commit comments

Comments
 (0)