Skip to content

Commit 6e85dff

Browse files
committed
chore: start and stop clients
1 parent d8f1132 commit 6e85dff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/types.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const client3 = new Client<string>(CatboxMemory, catboxMemoryOptions);
2424

2525
(async () => {
2626

27+
await Promise.all([client.start(), client2.start(), client3.start()]);
28+
2729
const x = await client.get({
2830
id: 'x',
2931
segment: 's',
@@ -45,4 +47,6 @@ const client3 = new Client<string>(CatboxMemory, catboxMemoryOptions);
4547
});
4648

4749
z?.item === 'z';
48-
})()
50+
51+
await Promise.all([client.stop(), client2.stop(), client3.stop()]);
52+
})();

0 commit comments

Comments
 (0)