From c76be2f1e05a3c2c892e335dfd00984a601c769f Mon Sep 17 00:00:00 2001 From: LongYinan Date: Sun, 2 Oct 2022 11:14:52 +0800 Subject: [PATCH] ci: do not throw if docker container stop failed --- memory-testing/test-util.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/memory-testing/test-util.mjs b/memory-testing/test-util.mjs index 8e120e5d..d4436ded 100644 --- a/memory-testing/test-util.mjs +++ b/memory-testing/test-util.mjs @@ -74,6 +74,10 @@ export async function createSuite(testFile, maxMemoryUsage) { shouldAssertMemoryUsage = true - await container.stop() - await container.remove() + try { + await container.stop() + await container.remove() + } catch (e) { + console.error(e) + } }