From 6e85dff8873a401cdda1a6ee55db0d90a632355b Mon Sep 17 00:00:00 2001 From: Nicolas Morel Date: Wed, 12 Jun 2024 09:42:06 +0200 Subject: [PATCH] chore: start and stop clients --- test/types.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/types.ts b/test/types.ts index 42d906d..edca411 100644 --- a/test/types.ts +++ b/test/types.ts @@ -24,6 +24,8 @@ const client3 = new Client(CatboxMemory, catboxMemoryOptions); (async () => { + await Promise.all([client.start(), client2.start(), client3.start()]); + const x = await client.get({ id: 'x', segment: 's', @@ -45,4 +47,6 @@ const client3 = new Client(CatboxMemory, catboxMemoryOptions); }); z?.item === 'z'; -})() \ No newline at end of file + + await Promise.all([client.stop(), client2.stop(), client3.stop()]); +})();