From 87f57022f5a760b19fefb82a40085a76dd7d40e8 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 24 Jan 2024 13:03:35 -0800 Subject: [PATCH] test: ignore nala-legacy installation error --- src/nala/__tests__/nala.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/nala/__tests__/nala.test.ts b/src/nala/__tests__/nala.test.ts index c12bc452..a1c29463 100644 --- a/src/nala/__tests__/nala.test.ts +++ b/src/nala/__tests__/nala.test.ts @@ -17,6 +17,12 @@ describe("setup-nala", () => { afterAll(() => { // remove nala to run the rest of the tests with apt-get execRootSync("apt-get", ["remove", "-y", "nala"]) - execRootSync("apt-get", ["remove", "-y", "nala-legacy"]) + + try { + execRootSync("apt-get", ["remove", "-y", "nala-legacy"]) + } catch (err) { + // ignore + console.error(err) + } }) })