Skip to content

Commit

Permalink
chore: start and stop clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Jun 12, 2024
1 parent d8f1132 commit 6e85dff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const client3 = new Client<string>(CatboxMemory, catboxMemoryOptions);

(async () => {

await Promise.all([client.start(), client2.start(), client3.start()]);

const x = await client.get({
id: 'x',
segment: 's',
Expand All @@ -45,4 +47,6 @@ const client3 = new Client<string>(CatboxMemory, catboxMemoryOptions);
});

z?.item === 'z';
})()

await Promise.all([client.stop(), client2.stop(), client3.stop()]);
})();

0 comments on commit 6e85dff

Please sign in to comment.