diff --git a/test/test.js b/test/test.js index 5d40c69..d31753f 100644 --- a/test/test.js +++ b/test/test.js @@ -40,6 +40,8 @@ describe('Application life cycle test', function () { if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless'); browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build(); if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots'); + + if (process.env.CI) execSync(`cloudron uninstall --app ${ELEMENT_LOCATION} || true`, EXEC_ARGS); }); after(function () {